Download MetaTrader 5

Am i right in my calculation?

To add comments, please log in or register
Cani Rasdi Leman
119
Cani Rasdi Leman  

Hi All,

I created a working arbitrage expert advisor which i've been using for 2months now and making huge profits and petty little losses, but i found out my expert is not including takeprofits and stoploss sometimes maybe it is too low or maybe it is too high(Dunno), but the expert works well without takeprofit..

 

This is the formula i use:

OrderOpenPrice()  + TakeProfit(20) * Point + 0.0 * MarketInfo(Symbol(),MODE_STOPLEVEL) * 1.0 * Point + Spread * 0.0 
//For Buy.
OrderOpenPrice() - TakeProfit(20) * Point - 0.0 * MarketInfo(Symbol(),MODE_STOPLEVEL) * 1.0 * Point + Spread * 0.0 
//For Sell

 Does this make any senses at all?

Is my calculation the foolish way or its just too complicated for an arbitrage ea?

I made a whole month withdrawal without using sl or tp, but i think it is dangerous in the event there is an unexpected(Either VPS Shutdown or something else)...

 

Please, Can you help me check if i'm making any senses?

Thanks... 

smeagol
23
smeagol  
This bit will always = zero (anything * 0 = 0)
0.0 * MarketInfo(Symbol(),MODE_STOPLEVEL) * 1.0 * Point
So will this bit.
Spread * 0.0
So the only bit that will have any effect is:
 OrderOpenPrice() + TakPprofit(20) * Point
To add comments, please log in or register