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
And try inserting an order check before OrderSend for correctness:
Oh, and one more thing: in the closing procedure, be sure to nullify the structures before filling them in
After
SymbolInfoTick(symb, price);
these two lines insert.
Oh, and one more thing: in the closing procedure, be sure to null the structures before filling them
After
insert these two lines.
no, you have to BEFORE:
helped. thank you.
Hello, building a fibo grid in an EA
ObjectCreate(0, "Fibo",OBJ_FIBO,0,time2,price1);
Everything works, but now I want to get the price at 23.6%, is there no simple function for this purpose?
double flevel236 = ObjectGetDouble(0, "Fibo",OBJPROP_LEVELVALUE,1); This one gives 0.236, i.e. not the price but the level.
double flevel236 = ObjectGetDouble(0, "Fibo",OBJPROP_PRICE,1); This one gives the price at level 0 (or at level 100).
I couldn't find anything other than these two (OBJPROP_PRICE and OBJPROP_LEVELVALUE).
Can you tell me how this problem can be solved. Thank you!
Can you tell me how to solve this problem? Thank you!
There are only two arithmetic operations. Multiplication (0.236 multiplied by the difference between the zero and first level prices) and then addition (add the result of multiplication to the zero level price).
Hello, thanks for the previous reply!
I am using iCustom(NULL,0, "Examples\\ZigZag",ExtDepth,ExtDeviation,ExtBackstep) In general I am connecting a regular zigzag. Everything seems to be OK with calculations. Could you advise how to enable the EA to automatically draw this connected indicator on the chart? At the moment I have to add the zigzag indicator manually after running the EA and set its parameters as in the EA! Thank you.
Hello, thanks for the previous reply!
I am using iCustom(NULL,0, "Examples\\ZigZag",ExtDepth,ExtDeviation,ExtBackstep) I am connecting a regular zigzag. Everything seems to be OK with calculations. Could you advise how to enable the EA to automatically draw this connected indicator on the chart? At the moment I have to add the zigzag indicator manually after running the EA and set its parameters as in the EA! Thank you.
I've started to study OOP.
I had a problem when writing a descendant of a base class, the compiler writes - "'ХХХХХХ' - wrong parameters count".
I've been looking for the reason for a long time, re-read articles and reference book,
but I found it - the base class has a constructor, it is one and parametric.
I've found a solution too - overloading of the constructor function with the default constructor,
but then I have to drag all the parameters of the parametric constructor of the base class to the descendant constructor for correct logic.
Are there any other ways?
Is there any way, when declaring a descendant class, to distribute to whom what? For example: these parameters to the constructor of the base class and these parameters so that the descendant doesn't get bored...