Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 214

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
I wrote an example WITHOUT your code. This is an example of where there are curly braces { } and where there are none... I wrote which lines will be executed and when. I just wanted you to understand how to organize logic in your code. YOU DON'T HAVE CURLY BRACES... So see in my example what happens in this case.
You don't need to guess!!!!!!!!!!!!!! Just try to understand...
Good evening, could you tell me how to implement the following task?
There is an entry in a trade at certain conditions. then comes the share, but here is the problem, how to make the share do not open if the price is closer than a certain distance from the previous trade. If price is closer to the previous entry (it dont matter if it was the first or 5,10 etc) than 30 pips then the order should not open.
Thanks for the answers.
Good evening, could you tell me how to implement the following task?
There is an entry in a trade at certain conditions. then comes the share, but here is the problem, how to make the share do not open if the price is closer than a certain distance from the previous trade. If price is closer to the previous entry (it dont matter if it was the first or 5,10 etc) than 30 pips then the order should not open.
Thank you for your replies.
Between the market and the closest position, i guess so.
Function
Call
between the market and the closest position, I guess so.
I understand the logic, how do I calculate the opening price of the last trade?
Addendum above
didn't get it...
I don't understand...
Understand what, exactly?
What exactly?
what do you mean by the addition above?
In general the meaning is :
if(Bid<=(N-30*Point) && another condition)
{
Open a sell order;
}
N is the open price of the last order - how do I know it?
what does adding above mean?
The general idea is this :
if(Bid<=(N-30*Point) && one more condition)
{
Open a sell order;
}
N is the open price of the last order, so how do I know it?
More
This function returns the opening price of the last open position