Strategy of buy/sell only when one condition hits AFTER another


Category:
0
0

Thanks for excellent videos especially Autotrade Almost!

Inside there was a way to configure an entry/exit if for example MACD crosses and EMA’s cross within X bars

But within the bars, it doesn’t consider which order. It can enter at the MACD cross or the EMA cross.

How can I enter only after the EMA crosses after the MACD cross?

Marked as spam
Posted by (Questions: 1, Answers: 1)
Asked on April 3, 2018 4:28 am
178 views
0
Private answer

I reviewed the video and did not find any examples I used that included MACD and Moving Average Cross for a strategy.

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on April 3, 2018 7:53 am
0

My apologies! I meant “for example” as my example, it was indeed not in the video.

There isn’t a way to program an entry only if one condition hits after another? It only considers both conditions met regardless of the order in the “within X bars”?

( at April 3, 2018 9:00 am)
0
Private answer

When building an expression using the condition wizard. The order in which events occur are controlled by the order in which you build them. You may be able to use the study named “MACDHistogramCrossover” as the first condition. Then use the study named “MovingAverageCrossover” as the second condition. For the second condition, set the right side parameter “within 3 bars”.

Screenshots show how to assemble this step by step.

Attachments:
Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on April 3, 2018 9:15 am
0

Thanks so much!!!!!

( at April 3, 2018 10:46 am)