@kallosh See if this works.

https://fxdreema.com/shared/TXc7CAI4e
Above is a test project. I want to draw a line at high price and lowest price at whatever time range. When working with a single pair its works fine.
How to store the high/low of price into a variable when using multiple symbols?
@khacdiepvnc set the time frame inside the condition block with the above conditions
@zackry use "-500" for an example. If you set the distance by a constant. Example (PipDistance) just type -PipDistance
@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
@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
well when i give the indicator name it doesnt work. im able to place it on normal chart.

@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?
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

@nikolas_m_s said in SuperTrend indicator for EA:
It does not recognize the Sell and Buy signals generated by the indicator. Could you tell me how I should configure the <<condition>>?
share your project
@l-andorrà well a solution was given to me by someone but with a custom code.

@l-andorrà yes, the one who accepted the job ended up rejecting by mistake so i deleted and sent a personal job
@guille4 not sure why you want to store the values of profit with open trades. If your trying to get profit/loss of current trades. You can use the unrealized block.
If not sure if this is what your trying to do but if your trying to close positions when it reaches a certain amount while already having positions that had closed due to sl/tp. In that case you cant use the above block. This is what i use and works well for me.
@vonmunchy said in EA Cannot run [SOLVED]:
@biztet you are missing the constant in max lot size
told you so
Iv posted a job for fxdreema. If anyone is interested, continue there/pm
@biztet well than i dont know. just try a different broker
@biztet it is a problem with either your broker/mt4 when i ran every project you posted with no modification on my account. Check the logs maybe you will undestand why
@biztet nope, ran it as it is. must be some issue with your broker/mt4