Code not working now!

 

I wrote an EA over the summer, initialy it was losing $3,000 and hour, i tweaked the code until my loses were less than 30 a day.


I recently added 30 External variables, now its not trading at all.

I have preset the variables at 0.

variables would represent support and resistance on different charts.

As price closes above a level this would buy, if below this would sell.


I also added a MACD cross for exit, cant seem to make entry work to test exit, lol


I am also wanting to separate the MACD parts, signal above histogram for a buy, below for a sell.


other code was working for a buy only, never would make a sell.


I am working on this so i can look at the levels a couple times a week only.

Files:
 
Joseph Carter:

I wrote an EA over the summer, initialy it was losing $3,000 and hour, i tweaked the code until my loses were less than 30 a day.

..............

I am working on this so i can look at the levels a couple times a week only.

Hello,

your code need brackets ({}).

But the serious problem for sell orders is to use iMOM levels <50.

For momentum the neutral level is the 100. So, for buy can use >100 and for sell <100.

I make some change in your code.

 

Don't double post! You already had another thread open.

          General rules and best pratices of the Forum. - General - MQL5 programming forum
 
Duplicate topic deleted.
 
William Roeder:

Don't double post! You already had another thread open.

          General rules and best pratices of the Forum. - General - MQL5 programming forum
Sorry about that I couldnt find it when I came back, thanks
 
Keith Watford:
Duplicate topic deleted.
Thank you
 
4 check value warnings?
Reason: