• Get access

Code not working now!

To add comments, please log in or register
Joseph Carter
15
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 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:
Nikolaos Pantzos
32120
Nikolaos Pantzos  
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.

Joseph Carter
15
Joseph Carter   1 2 3
Nikolaos Pantzos:

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.

I tried using this EA, put it on several pairs, it opens and instantly closes sell trades, I've missed something. It's doing it repeatedly, on each tick. There is also 4 warnings, 2 order select, 2 order close. Thanks in advance.
To add comments, please log in or register