Need help with a re code of my EA.

 

Its a nice little program that was 10 points 3 and I changed it a little bit. I need to use it on a real micro mini account. I am having a hard time changing the code to work on a micro mini account. Think it need something like else // then is micromini
then the right numbers like 1000 instead of 10000 for the mini.

If you could help me out with this that would be great.

Thank you, Gino.

 

Hello Gino,

I think you need to make an

if extra_digit = true

then where you would use Point use (Point * 10) to get back to your digits.

This is just off the top of my head so it may not be right.

Anohter way to approach this is to download another EA that has dealt with the extra digit issue and see what they did to get it going.

Steve AKA Forex5x

gknows:
Its a nice little program that was 10 points 3 and I changed it a little bit. I need to use it on a real micro mini account. I am having a hard time changing the code to work on a micro mini account. Think it need something like else // then is micromini
then the right numbers like 1000 instead of 10000 for the mini.

If you could help me out with this that would be great.

Thank you, Gino.

 

thank you ! I will work on it more today.

Have a look at backtesting the EA

run it on a 1m chart

eur usd is the pair I use it for

 

having problem with opening and closing orders I am using

//if val1 close order

OrderClose(OrderTicket(), Lots, Ask, Slippage, Orange);

//then open Buy

OrderSend(Symbol(), OP_BUY, Lots, Ask, Slippage, StopLossLevel, TakeProfitLevel, "Buy(#" + MagicNumber + ")", MagicNumber, 0, DodgerBlue);

//if val2 close order

OrderClose(OrderTicket(), Lots, Ask, Slippage, Orange);

//Then open buy

OrderSend(Symbol(), OP_SELL, Lots, Bid, Slippage, StopLossLevel, TakeProfitLevel, "Sell(#" + MagicNumber + ")", MagicNumber, 0, DeepPink);

But it does not always execute the close and open?

I tried adding RefreshRates(); which seemed better, but sometimes works sometimes doesn't?

 

what the hell is that ?

Reason: