Help modifying indicator

 

Hi,

I was hoping someone here would be able to help me modify my attached indicator.

Basically all the indicator does at the moment is plot an arrow for a cross of 2 moving averages.

That being, plot a green "buy" arrow when the 3 ema crosses above the 10 sma, and plot a red "sell" arrow when the 3 ema crosses below the 10 sma respectively.


I would like to add some conditions to this code if someone would be so kind help me out.

What I would like the indicator do is

Plot a green "buy" arrow when the 3 ema crosses above the 10 sma, only when the price is above the 40 sma and 240 sma and 1200 sma.

Plot a red "sell" arrow when the 3 ema crosses below the 10 sma, only when the price is below the 40 sma and 240 sma and 1200 sma.

Thanks in advance.

Files:
 
alphacap: I was hoping someone here would be able to help me modify my attached indicator.
Help you with what? You haven't stated a problem. Show us your attempt (using CODE button) and state the nature of your problem.
          No free help
          urgent help.
Reason: