PureBytes Links
Trading Reference Links
|
Hi,
I am coding a max stop loss in my code which involves looping
I coded..
---------------------------------------------------------------------
-
if (Low[i]<=(1-Maxstop*.01)*priceatbuy)
{
exit = 4;
SellPrice[i]=Min(Open[i],(1-Maxstop*.01)*priceatbuy);
//My attempt to code in a Max stop loss-appears to work as
coded
}
--------------------------------------------------------------------
I am attempting to optimise "maxstop"
I did initialize
Maxstop=10;//in percent
Am i correct that all I need to do is then code
ApplyStop(stopTypeLoss, stopModePercent, Optimize( "maxstop", 10, 2,
30, 1 ), True );
Sorry,but I am just getting the hang of looping
|