Download MetaTrader 5
To add comments, please log in or register
Improve your rating. Execute orders in Freelance service!
Cani Rasdi Leman
119
Cani Rasdi Leman 2015.10.02 19:54 

Hi Experts,

I am making a Robot and i want to make all Ordercommision and OrderSwap calculation before setting its takeprofit in pips....

Example,

I want to Calculate OrderCommision, OrderSwap, Spread and TakeProfit altogether without taking minus as Profit...

This -Take Profit is setting back my EA....

Thanks for taking your time to answer me...

peter.MT4Web
158
peter.MT4Web 2015.10.03 10:59  

Hi!

You can't calculate all of this before your order is in the market.

Swap will be added at the end of each day and you don't know how long it takes to touch TP or SL


Set your TP without Commission, Swap and Spread.

After the order is triggered, modify your TP with Commission and expected Sperad.

Then you have to modify your order at the end of each day with the Swap for the day.

Note: The Swap will also increase your losses.

Cani Rasdi Leman
119
Cani Rasdi Leman 2015.10.03 13:13  
eddie:

Hi!

You can't calculate all of this before your order is in the market.

Swap will be added at the end of each day and you don't know how long it takes to touch TP or SL


Set your TP without Commission, Swap and Spread.

After the order is triggered, modify your TP with Commission and expected Sperad.

Then you have to modify your order at the end of each day with the Swap for the day.

Note: The Swap will also increase your losses.

Thanks for your quick and welcoming reply..

I know i will have to place it after Order Opened.

But, i want to make sure my calculations are all set before modifying TP and SL

 

Thanks.. 

/
To add comments, please log in or register