Generally I never needed to do so because I always used one trade(or set of trades to be closed at the same time) at a time and the profit in that case can be easily estimated with:
expected_profit=AccountEquity()-AccountBalance();So I never needed to set a fixed TP limit. All I needed was to monitor the unrealized profit and close using OrderClose().
Generally I never needed to do so because I always used one trade(or set of trades to be closed at the same time) at a time and the profit in that case can be easily estimated with:
So I never needed to set a fixed TP limit. All I needed was to monitor the unrealized profit and close using OrderClose().I set Tp for some trades to close them together too
But for set Tp, it applies swap in calculations
Its why we need to swap to pip
I set Tp for some trades to close them together too
But for set Tp, it applies swap in calculations
Its why we need to swap to pip
Unrealized profit that you see in your terminal window counts for everything(commission, swap and etc)
This file contains a few functions and could give you a hint how to get the cost when you are in exotic modes of swap_type.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
It means to apply the amount of swab in pip toTP
for every order i use OrderSwap() to get its swap then
if swaptype = 0 it mean OrderSwap() is in point, then it needs to convert to pip ans apply to TP
if swaptype = 1 it mean OrderSwap() is in the symbol base currency , then swap in points=(swap in USD)/(tickvalue*lot) FOR EXAMPLE USD base currency
is it right or wrong way?????
and for
if swaptype = 2
if swaptype = 3
how i can have OrderSwap() in point?
please guide me if you know it
thank you for غour attention Sincerely and humbly