Need help with EL

taker

Newbie
Messages
7
Likes
0
I am trying to write a breakout strategy. I know that I can use stop prices with specific prices...as in the number. However, I don't know how to get my stop price to attatch itself to, let's say, the high of the 5 o'clock bar. Any help would be greatly appreciated.
 
Taker

Heres a crack:-

If Currenttime = 1700 then
Value1 = High

The use the Value1 variable as the value of the high price required. e.g.

If High >= Value1 then
Alert

If you have problems with the time, try bar counting (I'm assuming you are using Intraday) then you would say:-

If Barcount = x then {where Barcount starts at 1 on the first bar of the day this is not a function and would need defining}
Value1 = High

Alternatively use the bar function. There are many ways to skin a cat.

DaveG
 
Top