Need help with EL


7 0
I am trying to write a breakout strategy. I know that I can use stop prices with specific 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.


Junior member
40 0

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

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.

AdBlock Detected

We get it, advertisements are annoying!

But it's thanks to our sponsors that access to Trade2Win remains free for all. By viewing our ads you help us pay our bills, so please support the site and disable your AdBlocker.

I've Disabled AdBlock