Reply

Compare 2 charts’ price actions and trigger trades base on the info

8 replies

TJ#

Customer, bbp_participant, community, 144 replies.

Visit profile

7 years ago #115254

hi,

 

Recently met a friend and he has this interesting idea (to me). He would compare price movement on Dow Jones & S&P 500 Charts and if Dow Jones is going up whereas S&P 500 is heading down. 

 

He will Short Dow Jones & Long S&P 500 hoping that the indices will be back in sync and he will make money from the strategy.

 

How do we do this in EA Wizard? 

 

Many thanks.. 🙂

0

nolube

Customer, bbp_participant, community, 115 replies.

Visit profile

7 years ago #137854

You could use a moveing average..

 

ie.

 

IF

Dow < MA10

and

SP500 > MA10 

 

then buy Dow, sell SP500

 

That’s very basic, I think you would need more. Also have a look at a book called Cybernetic trading strategies (Ruggiero) – Really good read and touches on something like this. Also, the MA’s don;t necessarily need to be the same.

 

Hope this helps. Good luck

0

daveM

Subscriber, bbp_participant, community, customer, sq-ultimate, 110 replies.

Visit profile

7 years ago #137922

Wow, thanks for the tip re that book, I will have to dust it off and re read. I had completely forgotten I had it. lol

 

Thanks again, NoLube.

0

TJ#

Customer, bbp_participant, community, 144 replies.

Visit profile

7 years ago #137940

Thanks you NoLube for the book.

 

I tired to write a simple config but it does not work as I imagined. It does not seem to compare 2 chart’s (AUDUSD & AUDNZD). 

 
I have attached my configuration screenshots in the thread. How should I configure it correctly?
 
Thank you.
 
 

====================

Pardon the typo and also I missed out a chart screenshot

File: EA 1.pngEA 1.png
File: EA 2.pngEA 2.png
File: EA 3.pngEA 3.png
File: Chart.pngChart.png

0

nolube

Customer, bbp_participant, community, 115 replies.

Visit profile

7 years ago #137947

In your screenshots you are using AUDUSD and NZDUSD not USDJPY.. but anywhoo, I think you want to change one of the > to < as this will tell you when 1 is below and 1 is above. Also assuming you are running this on a daily chart? I would just leave timeframe as "Current" and this gives you flexibility when using it as it will just display it on the TF chart you are on.

0

TJ#

Customer, bbp_participant, community, 144 replies.

Visit profile

7 years ago #137948

Thank you.. 🙂

 

Currently, my objective is to configure a working code to compare 2 separate charts (such as AUDUSD vs NZDUSD), as for the rules, they can come later.

 

I am simply putting them as

 

AUDUSD (D1 chart)

EMA 10 > 20  

 

And 

 

NZDUSD (D1 chart)

EMA 10 > 20

 

if conditions match ==> draw signal, but it does not work as i hope to. 

 

Do you mind attach to a working sample to this post? Thanks for the help.

0

nolube

Customer, bbp_participant, community, 115 replies.

Visit profile

7 years ago #137969

Try this TJ, note that I have not tested this.. I have created some variables so you can change the EMA’s on both pairs.

 

 

File: TJ.sqw

0

TJ#

Customer, bbp_participant, community, 144 replies.

Visit profile

7 years ago #137972

Thanks for the help. 

 

Have run it, same outcome.. 🙁

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

7 years ago #138085

Couldn’t you simply compare last candles. If one is green and another (diffrerent symbol) is red you enter a trade?

 

Check my example attached. You can apply this EA on any pair like USDCHF or EURUSD. It will compare bars with GBPUSD and enter a trade on opposite bars. It opens trade in the primary pair but you can also add an order for GBPUSD to go in the opposite direction

0

Viewing 8 replies - 1 through 8 (of 8 total)