[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 240
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 have not found the page.
Couldn't find it either. It doesn't matter.
If you work at opening prices, it's enough to check at the opening of a new bar.
That's about right. And if the opening is possible at other prices. We should use other mechanisms.
If only one position can be opened by one symbol and timeframe, we must control the number of open positions.
Now, by checking the values of the necessary array elements, we know how many positions of this type are opened.
For example (example of setting a buy stop) :
(it is not at all necessary for the set price to be in the quote stream in order to set a pending order.
You can go with the current price or with any price, as long as you adhere to the stop level from CURRENT PRICE TO THE STOP PRICE)
( 'EURUSD - Trends, Forecasts & Consequences' )
Instead of
double priceBUY=..... ....
enter your formula
EH...thanks so much especially for the attached code! Just what the doctor ordered! ))))
Couldn't find it either. It doesn't matter.
If you work at opening prices, it's enough to check at the opening of a new bar.
That's about right. And if the opening is possible at other prices. We should use other mechanisms.
If only one position can be opened by one symbol and timeframe, we must control the number of open positions.
Now, by checking the values of the necessary array elements, we know how many positions of this type are opened.
I have this in the code, but I don't understand this array, how will it detect if there was an order on this bar and it closed, and we will wait for a new bar?
How do I explain? I might have misspoken or misunderstood the function....
1) If we open an order on the zero bar and it is already closed, then we do not open another order on this bar even if there is a signal to open it because we have already had a trade on this bar and it is already closed.
On each bar it is allowed to open only one deal, if there was a deal on this bar, we do not open the order, how to do?
Help people.....))) I'm already having a meltdown \\\\\\\\>>>>
I have this in my code, I don't understand how it will detect that there was an order on this bar and it closed and we will have to wait for a new bar?
How do I explain? I might have misspoken or misunderstood the function....
1) If we open an order on the zero bar and it is already closed, then we do not open another order on this bar even if there is a signal to open it because we have already had a trade on this bar and it is already closed; we just wait for the next bar.
On each bar it is allowed to open only one deal, if there was a deal on this bar, we do not open the order, how to do?
Help people.....))) I'm already having a meltdown \\\\\\\\>>>>
Check out Igor KIM's thread 'Useful functions from KimIV'. One of the functions will answer your question
Here I am trying to write an advisor... Just starting to learn... Error 4062 appears in tester...(ERR_STRING_PARAMETER_EXPECTED - 4062 - parameter of type string is expected)
I can't figure out where to fix it. Can someone local look at the code:)
Here I am trying to write an advisor... Just starting to learn... Error 4062 appears in tester...(ERR_STRING_PARAMETER_EXPECTED - 4062 - parameter of type string is expected)
I can't figure out where to fix it. May any of you local guys look through the code:)
1) double NormalizeDouble( double value, int digits), and you have (vinn/2, 0.1)
2) OrderSend(Symbol(), OP_BUY, GetSizeLot(), Ask, 3, Ask - StopLoss*Point,NO TAKE_profit, "AlanMod expert", 16384, 0, Green);
how do I name the buffers in the custom indicators?