Indicator inside a sub window
-
I have placed a MA inside CCI. I want to know how to check the when MA crosses below CCI thresholds. The MA price is based on price value and not the average of CCI.
And is it possible for to detect line cross inside a subwindow. Meaning let say i had placed 2 horizontal lines in the subwindow.
How to place a trade when MA crosses below the line inside the subwindow

-
@vonmunchy I'm afraid that is not possible in fxDreema. The only way to get it is by importing a custom indicator including both CCI and MA. Otherwise, you cannot.
-
@l-andorrà I haven't tested this so I'm asking if this is possible.
Fx dreema already has the function to place trade upon crossing object.
Does it apply to sub window?
-
@vonmunchy Honeslty I don't know. Can anyone else help here?
-
well when i give the indicator name it doesnt work. im able to place it on normal chart.

-
Try to find a moving average over CCI indicator.
https://www.mql5.com/en/market/product/54067?source=Unknown -
Even if it's possible to get the values from the horizontal line and the MA, how can you compare these values? I mean, visually they appear to be crossing, but I think this is only the way it looks on that particular subwindow with the particular zoom. If you resize the window or zoom a little bit, I think the MA line will move and the cross would appear somewhere else. So how can you detect such cross when the cross appears only visually. I mean, these are pixels on the chart that MetaTrader draws, but they cross only visually, not mathematically.
Otherwise it could be possible to compare two indicators with different values, but if you can put limits on them. For example you have indicator that moves between 0 and 100 and another one that moves between 200 and 500. You can adapt the values, so that 0 relates to 200 and 100 relates to 500, and any value between 0 and 100 relates to some very particular value between 200 and 500. But how relatable CCI and MA are? CCI value 120 relates to what value of MA? If you can solve this problem, then you can compare both indicators. Here is some explanation for how CCI works: https://www.metatrader4.com/en/trading-platform/help/analytics/tech_indicators/commodity_channel_index
Obviously CCI depends on MA values... but MA with other periods... I don't know, I'm very bad in mathematics, for me it looks unsolvable
-
@miro1360 sorry I had not seen your reply. Will take a look.
If the MA is based on cci than it won't work because it's a visual stretdgy
-
@fxdreema will try to set a value for MA. And yes it's a visual stretdgy and cross above or slope of MA changes with different chart scale.
The idea I had was for the automatically set the scale of the chart on start and the crosses to be detected from that scale.
PS. Appricatie you responding