i have the most fundamental question:
How can i create a buy or sell signal from an event (several indicator parameters occured, not a single value reached a certain level)?
I am using the zigzag indicator and in the indicator there is a line that i want to use as a sell trigger:
if ((addHigh || updateHigh)
at the moment i am outputting an alert
Alert("sell now")
but i would like to make this event accessible by a strategy in the wizard.
I know that i would have to create a new plot inside the indicator and that the plot has to be something like -1 for sell and +1 for buy signal. But is not working.
Can you sent me the actual lines of code that are required to make an event inside an indicator available in the strategy wizard?
thank you very very very much
Comment