Thanks again, I having problem with New Bar Det. I see there are different versions
which one works best.
Probably the one that you can understand the easiest and that works for you in your coding scenario . . . you can learn a lot by trying to understand other peoples code, I know I have. :-)
if (New_Time!=Time[0]) New _Time not = Time[0] ok this is the logic truth { New_Time = Time[0]; how can this be true f_New_Bar = true; and how does this det the chainge in New_Time
Alert(Time[0]); }
if (f_New_Bar==false)
{ Alert("Waiting for new bar");
}else{ Alert("New bar just Exist."); NewBar1++; } return(0); }
Hi,im trying to have only one trade per bar,often the 20pip profit is hit
on the same bar and will keep trading the same bar and get stopped out often.
So I'm trying to check for the new bar that i can use inhibit trades.
Also I'm trying to understand the logic of the new bar script
and i'm having problems working it.
here is my program and thanks.
Select your code, copy (Ctrl + C), click the SRC button, paste . . .
void Function_New_Bar()
{
double New_Time;
int f_New_Time,NewBar;
bool f_New_Bar = false;
if (New_Time!=Time[0]) New _Time not = Time[0] ok thisis the logic truth
{
New_Time = Time[0]; how can this be true
f_New_Bar = true; and how does this det the chainge in New_Time
Alert(Time[0]);
}
if (f_New_Bar==false)
{
Alert("Waiting for new bar");
}else{
Alert("New bar just Exist.");
NewBar1++;
}
return(0);
}
If you are on a 5 digit broker you need to adjust accordingly, there are plenty of code examples posted here to help you.
Have a look here: http://crum.be/45digit
Now i'm get Error 130 " invalid stops ".
I put print statements and checked the stoploss:
Stoploss= 20 pips
I check and 20 *Point = .00002 not .00020
So the stoploss is not large enough.
Thanks again, I having problem with New Bar Det. I see there are different versions
which one works best.
Thanks again, I having problem with New Bar Det. I see there are different versions
which one works best.
Hi, how do this logic work?
void Function_New_Bar()
{
double New_Time;
int f_New_Time,NewBar;
bool f_New_Bar = false;
if (New_Time!=Time[0]) New _Time not = Time[0] ok this is the logic truth
{
New_Time = Time[0]; how can this be true
f_New_Bar = true; and how does this det the chainge in New_Time
Alert(Time[0]);
}
if (f_New_Bar==false)
{
Alert("Waiting for new bar");
}else{
Alert("New bar just Exist.");
NewBar1++;
}
return(0);
}
Hi, how do this logic work?
Please use this to post code . . . it makes it easier to read.
Select your code, copy (Ctrl + C), click the SRC button, paste . . .
Thanks again, I having problem with New Bar Det. I see there are different versions
which one works best.
All that use time work the same.
Raptor New_Time MUST be static or global
Raptor New_Time MUST be static or global