Defined the following TMF, but it does not work ie it does not block the trade at the required level. I have used just onw asseet for testing. Still trying...

int maxMAE(var maxPIP){
if (abs(TradeMAE) > maxPIP*PIP) return (1);
else return(0);
}

...
enterLong(maxMAE, 250);
enterShort(maxMAE, 250);
...



Attached Files Untitled.png
Last edited by MatPed; 01/31/16 13:30.