[ARCHIVE!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Can't go anywhere without you - 4. - page 520
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
would you add a message that is logged when orders are closed or does it not reach the closing attempt at all?
Here is a screenshot during testing... Orders are only closed at Take Profit or Stop Loss, but not at the criterion specified in the code ((. (Orders should close each time a stochastic crosses lines)
Here is a screenshot during testing... Orders are closed only at Take Profit or Stop Loss, but not at the criterion specified in the code ((. (Closing should happen every time stochastic lines are crossed, same as opening)
Hello.
I have an indicator. It is written in the code:
#property indicator_chart_window
Naturally, when you put this indicator on a symbol chart, it is drawn in the main window.
Question: How can I make this indicator be drawn in the additional window without any code changes?
Hello.
There is an indicator. It is written in the code:
Naturally, when you put this indicator on the symbol chart, it is drawn in the main window.
Question: How can I draw this indicator in an additional window without code editing?
#property indicator_separate_window
Here is a screenshot from testing. Orders are closing only at Take Profit or Stop Loss. (Closing should happen every time stochastic lines are crossed)
Why are you making such a mess? Since your entry point into the market is the entry point to the opposite side, you should first close and then immediately open an order without creating a bunch of logical variables. In this case, you are working on a zero bar and stochastic conditions may change even on every tick.
Or, if you want something more or less similar to work, try to swap the while loops that open and close the loop - first close, then open, but imho, in this style of writing it is difficult to debug the program. Learn to use functions, for example, separate functions for closing and opening
Question: How can I make this indicator be drawn in an additional window without editing the code?
Hi all!
Dear forum users, help me out here.
I have an indicator that displays highs and lows for the last n bars. The information is displayed as a symbol and I want it as a line.
Can you please tell me how to correct the code?
Digging around in the templates I guess. There's definitely no other way without editing the code.
Thank you for your reply! I came across just such a pattern. Thought this effect was derived from some settings in MT.
#property indicator_separate_window
I do not like the history on some brokerage companies, Expert Advisor is much worse optimized, but I am satisfied with trading conditions. I have an idea to divide the Expert Advisor into 2 parts - one part works with one brokerage company, monitors the chart and generates signals, the second part works with another one, takes signals from the first one and places orders.
So, there are two ways to solve this problem
1) subscribe to our own signals according to the latest update of MQ. But we would like to make the exchange within one computer
2) Arrange the exchange through a file (or buffer). Maybe someone has done similar? Throw me a link, please, or tell me where to dig
#property indicator_separate_window
Here's the famous idnikator.
Can you get a picture like this!? :))))))