[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 438

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Can you tell me how to compare the current price of the current bar with the maximum price of the previous bar?
Bid - current price of the current bar,
High[1] - maximum price of the previous bar
Friends, how can this be? An incomprehensible phenomenon of nature is captured in the screenshot.
Maybe you know why on visualisation the code returns angle_line variable (returns angle normally), but on testing and running it does not (returns 0th angle). Thanks!
//+------------------------------------------------------------------+
int start()
{
//----
ObjectCreate("LineAngle", OBJ_TRENDBYANGLE, 0, 0,0);
ObjectSet("LineAngle", OBJPROP_TIME1, Time[2];
ObjectSet("LineAngle", OBJPROP_PRICE1, Close[2];
ObjectSet("LineAngle", OBJPROP_TIME2, Time[0];
ObjectSet("LineAngle", OBJPROP_PRICE2, Open[0]);
double angle_line=ObjectGet("LineAngle",OBJPROP_ANGLE);
Print(" angle_line ",angle_line);
return(0);
}
//+------------------------------------------------------------------+
Can you tell me how to compare the current price of the current bar with the maximum price of the previous bar?
Maybe you know why on visualisation the code returns angle_line variable (returns angle normally), but on test and run it does not (returns 0th angle). Thanks!
//+------------------------------------------------------------------+
int start()
{
//----
ObjectCreate("LineAngle", OBJ_TRENDBYANGLE, 0, 0,0);
ObjectSet("LineAngle", OBJPROP_TIME1, Time[2];
ObjectSet("LineAngle", OBJPROP_PRICE1, Close[2];
ObjectSet("LineAngle", OBJPROP_TIME2, Time[0];
ObjectSet("LineAngle", OBJPROP_PRICE2, Open[0]);
double angle_line=ObjectGet("LineAngle",OBJPROP_ANGLE);
Print(" angle_line ",angle_line);
return(0);
}
//+------------------------------------------------------------------+
No objects are built during testing and optimisation
Objects are not built during testing and optimisation
How do I find out the angle of a straight line in an EA in such cases?
How do you find out the angle of a straight line in such cases, in the EA?
Count. Everyone has studied arithmetic
It also writes disabled lot something. I calculate lot volume*A, where extern double volume=0.1; A=NormalizeDouble(A,0);
Here, for order, is the whole order
And A takes values somewhere between one and sixteen...