
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
Thank you. It worked. I declared this variable as a global variable.
Right.
But keep in mind that LWMA needs to have one of these variables each for parallel LWMA calls. As many different parameters in LWMA, so many variables
How do I close a position (which is the sum of several open positions)? Is there an analogue of OrderClose(), or should I open a position in the opposite direction?
You open in the opposite direction with the same lot for which the position is now open.
The result will be "no position".
Any position in any instrument is already the sum of all previous trades.
ZZZY Remind that a position on any tool can be only one or not exist at all.
Right.
But keep in mind that for parallel LWMA calls you need to have one of these variables each. As many different parameters in LWMA, so many variables
Thanks, I'll keep that in mind.
And I have the following question.
can I add a custom indicator into OBJ_CHART and if so, how?
can a custom indicator be added to OBJ_CHART? and if so, how?
ChartIndicatorAdd ?
error 4802 indicator cannot be created
My custom indicator, put separately, works.
error 4802 indicator cannot be created
Then find out why it cannot be created.
and only then proceed to adding it to the chart
then work out why it's not being created.
and then move on to adding it to the chart
It does not work:(
Does it not work with iCustom either?
1. you must have the wrong currency pair in the tester
2. Wrong timeframe.
If the tester has an indicator, everything is OK.
For visualization in real time, we have to add ChartIndicatorAdd and ChartRedraw .
Doesn't the iCustom also work?
1. you must have the wrong currency pair in the tester
2. Wrong timeframe.
If the tester has an indicator, everything is OK.
For visualization in real time, you have to add ChartIndicatorAdd and ChartRedraw .
1) This is not a tester. I just create a chart type object in a separate window through the indicator
2) Here all timeframes are taken into account.
As for the visualization - don't I have it?