View Full Version : can one use the term "entryprice" or EA etc in cod
gawdib
27th December 2003, 09:05 PM
It would be helpful to be able to use as my initial- maximum- stop- loss- for- initially- invested -in- the- trade capital, such as "entryprice"-2*atr(50) or, as on page 103 of the manual EA-2*atr(50), etc
can one do that?
David Samborsky
29th December 2003, 02:01 PM
Yes this is exactly how you would use it. Note though that the ATR includes todays prices so to be realistic you may want to use the previous bars ATR.
InitialStop:=EntryPrice-2*ref(ATR(50),-1);
for short trades
InitialStop:=EntryPrice+2*ref(ATR(50),-1);
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.