Hi,

i want to optimize trade only for the monday. Also for the LONG and SHORT.

I'm have this code:
Code:
while(loop(SYMBOLS)){
		asset(Loop1);
		while(algo(loop(FUNC))){
			if(Algo =="HOUR_PO:L" && dow() == 1)	FindLong(1);
			if(Algo =="HOUR_PO:S" && dow() == 1)	FindShort(1);
...
...



after starting the train i get this error:
Error 040: Inconsistent optimize calls
Bar 255: 5 - bar 256: 0

I have questiong, is a possible optimize trade in the function ( not in RUN) only for the one day? I found only this:
Code:
void FindLong(int i){
 ...
 ...
 if (dow() == 1) enterLong();
}


Last edited by Grat; 08/27/16 09:45.