Check Market Close
-
hi. this is the method simply for verification market closed? Time Candle 0 < a Time current on tot Hours?
-
@duepips Never tried but it makes sense that if the candle time is less than the current time the markets not moving.
You can also find this by using this code:
variable1 = MarketInfo(NULL,MODE_TRADEALLOWED);
variable1 = a bool (or int) value, returns false (0) for closed and true (1) for open. -
@jstap said in Check Market Close:
Never tried but it makes sense that if the candle time is less than the current time the markets not moving.
You can also find this by using this code:thanks, this not is simply method, I like simply elaboration...
-
@jstap said in Check Market Close:
@duepips Never tried but it makes sense that if the candle time is less than the current time the markets not moving.
You can also find this by using this code:
variable1 = MarketInfo("TSLA",MODE_TRADEALLOWED);
variable1 = a int value, returns a number something like 0 for closed and 1 for open.you like this? https://fxdreema.com/shared/aaik6J4we
it must first take a turn to load the variables then it starts to run well, also to take advantage of the on Timer -
is correct?
-
-
@duepips You can also use UNIX time verification.
-
@l-andorrà said in Check Market Close:
@duepips You can also use UNIX time verification.
you have on example for me? Thanks
-
@duepips Something like this connected below a 'for each trade' block:

-
@l-andorrà said in Check Market Close:
@duepips Something like this connected below a 'for each trade' block:

thanks, this is for wait tick! for check market close?
-
@l-andorrà said in Check Market Close:
@duepips Something like this connected below a 'for each trade' block:

Thanks, I created a check for the market close by encrypting the data of the candle 0 M1 with the Time and the Close performed so on Timer set to 60 seconds, at each step of on Timer it creates a unique code, the Market warning appears only when the market is stopped closed
-
Weekend Close Check
Use block: Weekday filter
Reject working days
Allow Saturday + Sunday
When true = Weekend = Market closed

-
@duepips This is supposed to be used on the 'on tick' tan, if that is your question.
-
@l-andorrà said in Check Market Close:
@duepips This is supposed to be used on the 'on tick' tan, if that is your question.
yes, on tick, add a for each position block?
-
@duepips Yes, you will need that block on top of the condition block.
-
@duepips said in Check Market Close:
@l-andorrà said in Check Market Close:
@duepips This is supposed to be used on the 'on tick' tan, if that is your question.
yes, on tick, add a for each position block?
yes I tried but it is loaded only if you have open positions, if you do not have open positions it does not work
-
@duepips Then I'm afraid you should try jstap's suggestion.
-
@l-andorrà said in Check Market Close:
@duepips Then I'm afraid you should try jstap's suggestion.
yes I wanted to try it but I didn't understand how to assemble the blocks
-
@duepips You add it like this https://fxdreema.com/shared/1bYhCfYfe only works on MT4, MT5 is more complicated.
-
@jstap said in Check Market Close:
@duepips You add it like this https://fxdreema.com/shared/1bYhCfYfe only works on MT4, MT5 is more complicated.
thanks, I on mt5 have added block on Timer drumming time server and time candle + adjust 60.0 for wait ticks and 600.0 second (10 minutes) for market close
