I don't even know if what i'm asking for can be programmed; I want my EA to execute trades only AFTER the high/low of the ASIAN session is broken and price creates a new high/low on the LONDON session. Which function do i need to take a close look at to achieve this?
HIGH OF THE DAY, LOW OF THE DAY
-
I don't even know if what i'm asking for can be programmed; I want my EA to execute trades only AFTER the high/low of the ASIAN session is broken and price creates a new high/low on the LONDON session. Which function do i need to take a close look at to achieve this?
-
@ituinvests You need to create 2 variables to track the high and low.
Here's how to update the high, for example:
condition: current candle high > variablehigh
-> modify variablehigh to current candle high.Use a hours filter to limit the opportunities to update that variable only on Asian session. Then use another hours filter (for london hours) when the EA can check if current close > variablehigh.
Lastly, you'll have to reset your variablehigh and variablelow variables for the next asian session: when the asian session begins, set both variables to current price, so any price movements will get updated to the variables and the seeking for new asian highs/lows can begin again.
-
@roar God bless you, you've been very helpful thanks alot !!!
- about a month later
-
Deleted....
- about a year later
-
@roar can you give one example? I try this, but going in wrong way. thank for helping
- 4 months later
-
@roar what if i want to calculate the midpoint of that range to use as a variable
-
@foxbat Roar isn't here much any more, high point price - low point price will give you the mid point price.