I need an Help...
I wander if there is a problem with the great work of OREST:
Within the T101_V1.x_OREST there is:
if (StringLen(Buy_pair_1)>0 && iOpen(Buy_pair_1, tf, bars_back)!=0)
{
spread = MarketInfo(Buy_pair_1, MODE_SPREAD)/ECN*dPoint(Buy_pair_1);
period_starts_5min = iTime(Buy_pair_1, tf, bars_back)+60;
bars_period_starts_5min = iBarShift(Buy_pair_1, PERIOD_M1, period_starts_5min);
open_5min = iOpen(Buy_pair_1, PERIOD_M1, bars_period_starts_5min);
GBPUSDm = iOpen(Buy_pair_1, tf, bars_back);
GBPUSDm_now = MarketInfo(Buy_pair_1, MODE_ASK);
GBPUSDm_pips = (GBPUSDm_now-GBPUSDm-spread)/dPoint(Buy_pair_1);
GBPUSDm_pips_5min = (open_5min - GBPUSDm - spread)/dPoint(Buy_pair_1);
}
As you can see OREST divide the variable "spread" with "point" cooficient TWICE. Is it O.K.?
I wander if there is a problem with the great work of OREST:
Within the T101_V1.x_OREST there is:
if (StringLen(Buy_pair_1)>0 && iOpen(Buy_pair_1, tf, bars_back)!=0)
{
spread = MarketInfo(Buy_pair_1, MODE_SPREAD)/ECN*dPoint(Buy_pair_1);
period_starts_5min = iTime(Buy_pair_1, tf, bars_back)+60;
bars_period_starts_5min = iBarShift(Buy_pair_1, PERIOD_M1, period_starts_5min);
open_5min = iOpen(Buy_pair_1, PERIOD_M1, bars_period_starts_5min);
GBPUSDm = iOpen(Buy_pair_1, tf, bars_back);
GBPUSDm_now = MarketInfo(Buy_pair_1, MODE_ASK);
GBPUSDm_pips = (GBPUSDm_now-GBPUSDm-spread)/dPoint(Buy_pair_1);
GBPUSDm_pips_5min = (open_5min - GBPUSDm - spread)/dPoint(Buy_pair_1);
}
As you can see OREST divide the variable "spread" with "point" cooficient TWICE. Is it O.K.?