[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 403
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
Download the history and the question goes away
How do you download it?
I understand correctly:
The specific implementation is very closely tied to your conditions.
A flag is simply a variable in which the state is stored. Roughly speaking, it can be raised or lowered. Build on that and implement your logic.
Can you advise how to write a correct condition for the Expert Advisor to trigger 1 time with the opening of a new bar at a specified timeframe? :(
You can come up with different variants, it often uses this kind of condition:
The specific implementation is very closely tied to your conditions.
A flag is simply a variable in which the condition is stored. Roughly speaking, it can be raised or lowered. Build on that and implement your logic.
Well, did I get the point right?
I understand correctly:
1. if condition1 is fulfilled, then Flag_SSSR1 is assigned a true value and we immediately start checking condition2
2. if the condition2 is fulfilled, then the true value is assigned to the flag Flag_CCP2; if not, then it is a false flag, and on the next tick
we don't check condition1 any more, and proceed directly to condition2 and so on, until condition2 is fulfilled and it takes a true value
3. then we check condition3 and Flag_USSR2 (and what exactly in USSR2 is checked if it is true or false, or what?)
Is this correct? There is not a single transaction in the tester... Although there should be if it's right. What is wrong...?
Hi!
I set a goal of limiting simultaneous open positions to 1.
With the variable Open/Close level = 3/2 multiplied by Point, placed in the open/close position conditions I tried to solve this task, but did not succeed.
Please help me figure it out :)
Is this the right thing to do? There's not a single transaction in the tester... Although there should be if it's right. What's wrong...?
Hi!
I have set a goal of limiting simultaneously open positions to 1.
if(OrdersTotal()> 0) return;
Or a variation with the symbol and throwing out pending orders.
i.e. in my version
if(OrdersTotal()> 1)return;
?
Now, write out the conditions in full again in normal language and you can correct the code... The good thing about signals is that they should have an expiry and cancellation period.
All these conditions may not follow each other at once (may be after an hour or two or three), so we need to make it so as soon as the indicator reaches 1.0000, this condition is not checked at every tick, and wait until one bar closes with fall, and after that these 2 conditions are not checked at every tick, and wait until the indicator reaches 0.9980 or less. As soon as all conditions are fulfilled we open a market order to sell 0.1 lot with a stop loss of 400p and take profit of 400p.
i.e. in my version
if(OrdersTotal()>1)return;
?