When 1 TF crosses set a flag to true when it crosses back set flag to false, do the same with a different flag on the other TF, check flags before buy/sell.
Posts made by jstap
-
RE: Question about crossovers on two timeframes.posted in Questions & Answers
-
RE: Why am I getting loss trades because trades are not closing at 2 MAs crossing?posted in Bug Reports
@veetee Thinking about it, if you connect the close blocks to the yellow dot all should work.
-
RE: Why am I getting loss trades because trades are not closing at 2 MAs crossing?posted in Bug Reports
@veetee 2 trees but you need 4 to successfully close trades, 2 for buy/sell, 2 for closing.
-
RE: Breakeven point using ATRposted in Questions & Answers
@dreematrade Look here https://fxdreema.com/forum/topic/12802/atr-pips once you get the atr in pips you can use the variable in the break even block.
-
RE: Market aggression meter.posted in Questions & Answers
@ontradingx Maybe, the number of ticks don't necessarily equate to candle movement.
-
RE: Market aggression meter.posted in Questions & Answers
@ontradingx I think your logic is correct but in your picture you have more sell ticks than buy, so probably working as expected.
-
RE: Market aggression meter.posted in Questions & Answers
@ontradingx Yes this is your choice, if you want it to permanently count create a diffront variable or 2 then use other blocks to calculate as you want, if you generate other variables to hold values then every time it resets put6 into 5,5 into 4, 4 into 3 Etc until all values are held.
-
RE: Why am I getting loss trades because trades are not closing at 2 MAs crossing?posted in Bug Reports
@veetee Put your close trades in separate trees, as is as soon as a trade runs the stop is blocked from activating.
-
RE: Market aggression meter.posted in Questions & Answers
@ontradingx This will count buy and sell ticks per candle, hope it helps.
-
RE: STOP LOST AT ENTRY PRICE BUT ALREADY SETposted in Questions & Answers
@ahmad-a Would be nice if you use uncapitalized text, the picture shows no reason for problems, put a shared link here so EA can be checked.
-
RE: Why am I getting loss trades because trades are not closing at 2 MAs crossing?posted in Bug Reports
@veetee This works and you have this opening a trade so must be something else, put a shared link here and problems can be assesed.
-
RE: Indicator work on a particular Time Frameposted in Questions & Answers
@alexitoeve50 This is hard to say but for me if all blocks that contain MACD had the same timeframe this is what I would expect it to use, change the constant value from 1 to PERIOD_M1, might correct things.
-
RE: Indicator work on a particular Time Frameposted in Questions & Answers
@alexitoeve50 What blocks are using the wrong time frame? Any blocks with no time frame set will use current.
-
RE: Indicator work on a particular Time Frameposted in Questions & Answers
@alexitoeve50 All looked ok to me but because use macd value should be bool is it skipping rhis block?

-
RE: Check Market Closeposted in Questions & Answers
@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.