I apologize for being impatient.

I have read the manual section about NFA... but I do not understand what it means.
"Directly closing positions is not allowed"

How can you close a position then? You can close a position manually (how else are you supposed to realize a profit?). What is the issue ?

I cannot open a simultaneous long and short position on binance. According to the manual, that means it is NFA compliant. So how do I close a trade?
Can you please provide me with an example how to exit a trade?

I am on a scripting level, but I am neurodivergent and I do not learn the same way as others. I wrote my own trading scripts in python. I also have coded in pinescript. Zorro team has done more than I could do in a lifetime so I am switching to learning Zorro now. Can you please point me to a workshop, or provide a code sample that will enter and exit a trade in live mode?

Code
#include <profile.c>
function run(){
	
	BarPeriod = 1;
	LotAmount = 0.001;

	Stop = 1.233;
	
	vars Close = series(priceClose());

	vars DEMAShort = series(DEMA(Close,7.03));
	vars DEMALong = series(DEMA(Close,32));

	if (crossOver(DEMAShort, DEMALong)) 
		enterLong();

	if (crossUnder(DEMAShort, DEMALong)) 
		enterShort();
	
	
}





Thank you for your time.

Last edited by coinpump; 01/07/22 22:53.