Can you please advise the problem:-
if (pf40 == 0)
{
pfdir = "True";
pf40 = GetCurrentAsk();
}
This is to set the level once on startup, I then use the print statement below :-
Print("Ask " + GetCurrentAsk());
Print("PF40 " + pf40);
And right at this moment get a figure returned of 1.4744 for the Ask for the GBPUSD which is of course some 600 pips wrong!!
If I coment out the line if (pf40 == 0), so that I have the following:-
// if (pf40 == 0)
{
pfdir = "True";
pf40 = GetCurrentAsk();
}
then it reads correctly but this is ridiculous as pf40 is set by default to 0 and therefore this line should evaluate correctly. I need to have this correct so that it only evaluates the once. HELP!
Comment