I have been trying to create a simple EA for a week without complete success. I need it to OPEN and CLOSE. It will open, but not close. This is what I am attempting, if only to confirm functionality.
This is an exponential MA on the close.
If you want to see what I am trying to create on the charts as a trading EA, make a 5 EMA and a 12 EMA and see the lengths of the profitable trades. 1 HR chart. Any pair.
Simple OPEN BUY and CLOSE BUY, OPEN SELL and CLOSE SELL.
5 EMA crosses over 12 EMA up for the OPEN BUY. 5 EMA crosses under 12 EMA down for the OPEN SELL.
To test functionality I want this IMMEDIATE.
Later I want to put in a minimum pip count to negate small movements.
5 EMA crosses under 12 down for the CLOSE BUY. 5 EMA crosses over 12 EMA up for the CLOSE SELL.
This I want to happen IMMEDIATELY. - not a candle later, or a minute later.
Any ideas??
This is an exponential MA on the close.
If you want to see what I am trying to create on the charts as a trading EA, make a 5 EMA and a 12 EMA and see the lengths of the profitable trades. 1 HR chart. Any pair.
Simple OPEN BUY and CLOSE BUY, OPEN SELL and CLOSE SELL.
5 EMA crosses over 12 EMA up for the OPEN BUY. 5 EMA crosses under 12 EMA down for the OPEN SELL.
To test functionality I want this IMMEDIATE.
Later I want to put in a minimum pip count to negate small movements.
5 EMA crosses under 12 down for the CLOSE BUY. 5 EMA crosses over 12 EMA up for the CLOSE SELL.
This I want to happen IMMEDIATELY. - not a candle later, or a minute later.
Any ideas??