Forex conditional order RSI oversold and MACD Histogram crossover


Category:
0
0

Hello,

I am new to Thinkorswim and using the condition wizard to set up an “almost” auto trade in Forex Trading. After watching your video for Thinkorswim AutoTrade Almost – Hahn-Tech, LLC I attempted to use the condition wizard to set up the parameters to initiate a buy. I want to use the studies RSI and MACD, where when:

RSI(“show breakout signals” = yes).”RSI” crosses above 30 and MACDHistogramCrossover(“crossing type” = “Negative to Positive”) is true within 1 bars

a buy is triggered. When I use them separately they work but when I put them together they don’t. I attempted to change the “and” to “then” as I don’t want the buy to be triggered unless the RSI parameters are met first and then the MACD parameters are met second.

Your help would be greatly appreciated.

Marked as spam
Posted by (Questions: 1, Answers: 1)
Asked on August 2, 2021 4:57 pm
134 views
0
Private answer

I updated the title of your question to more accurately describe the context of your request.

One very important detail I want to cover before we dig into the details. I was recently contacted by a viewer trying to use Conditional Orders on Forex. Despite applying the correct technique, the order was rejected with an error stating there were no quotes available on the exchange. Depending which Forex pairs you are working with, it may not be possible to trade using a market order. Which would also make it nearly impossible to trade using a Conditional Order because some Forex markets only allow limit orders and will not except market orders. Contact the Trade Desk at TD Ameritrade for complete details.

I see that you want the RSI crossing event to occur first. Then if the MACD histogram crosses above zero you want the Conditional Order to be triggered. In the code you provided, you have it exactly backwards.

However there is a very subtle difference between "RSI crosses above 30 BEFORE MACD crosses above zero" and "RSI crosses within the last two bars and MACD crosses above zero on the current bar". I will try to provide both of those solutions so you can see the difference and practice with both.

Before we go any further it's very important I provide a link to our videos showing how to use the Condition Wizard:

https://www.hahn-tech.com/thinkorswim-condition-wizard/

https://www.hahn-tech.com/thinkorswim-condition-wizard-watchlist/

The rest of the visitors to this post will not have a clue what we are talking about until they view those videos I just linked.

Now on to the solution. The following code was generated by the Condition Wizard and the screenshots below show how this was setup:

RSI()."RSI" from 1 bars ago crosses above 30 and MACDHistogramCrossover("crossing type" = "Negative to Positive") is true

Now for the alternate method, which will allow the order to trigger if the RSI and MACD crosses on the same bar OR if the RSI crosses one bar prior and MACD crosses on current bar:

RSI()."RSI" crosses above 30 within 2 bars and MACDHistogramCrossover("crossing type" = "Negative to Positive") is true

 

Attachments:
Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on August 3, 2021 11:58 am
0
Thank you for your input and the information regarding the errors in Forex trading. I will play around with these two solutions.
( at August 3, 2021 2:32 pm)