Does anybody know how to get actual(current date) price of currency pair while being in modeling mode?
Marketinfo() or iOpen()/iClose()/iHigh()/iLow() doesn't work because they get actual price of modeled date not current date price.
What do I need it for?
For every trade I first decide risk I want to take(ie. 2%,3%,...) and based on it number of Lots. Formula for this looks like this:
Lots=(Risked money*100000)/(({quote}/{home currency}) *(Opening Rate - StopLoss Rate) );
where:
{quote} is second currency in currency pair ie. for GBPJPY quote is JPY and for EURUD quote is USD;
{home currency}- is currency in which your account is.
In modeled mode MetaTrader takes ({quote}/{home currency}) current price(the day you are using MT) not modeled time. So if want to get proper position size I need actual price of currency pair in modeling mode, not the price of modeled time.
Hope anybody can help. Thanks
Lukasz
Marketinfo() or iOpen()/iClose()/iHigh()/iLow() doesn't work because they get actual price of modeled date not current date price.
What do I need it for?
For every trade I first decide risk I want to take(ie. 2%,3%,...) and based on it number of Lots. Formula for this looks like this:
Lots=(Risked money*100000)/(({quote}/{home currency}) *(Opening Rate - StopLoss Rate) );
where:
{quote} is second currency in currency pair ie. for GBPJPY quote is JPY and for EURUD quote is USD;
{home currency}- is currency in which your account is.
In modeled mode MetaTrader takes ({quote}/{home currency}) current price(the day you are using MT) not modeled time. So if want to get proper position size I need actual price of currency pair in modeling mode, not the price of modeled time.
Hope anybody can help. Thanks
Lukasz