Knoxville, TN/USA
Market Wizard
Experience: Beginner
Platform: TradeStation
Broker: TradeStation
Trading: ES
Frequency: Several times daily
Duration: Minutes
Posts: 624 since Feb 2010
Thanks Given: 1,573
Thanks Received: 1,368
|
Hi, here's an example of several conditions being met on a 3 line MA cross.
Perhaps it will help you. It's from the TS studies library. I'm no coder but like messing around with EL.
{ Alert criteria }
if Displace <= 0 then
begin
Condition1 = Price > FastAvg and FastAvg > MedAvg and MedAvg > SlowAvg ;
if Condition1 and Condition1[1] = false then
Alert( "Bullish alert" )
else
begin
Condition2 = Price < FastAvg and FastAvg < MedAvg and MedAvg < SlowAvg ;
if Condition2 and Condition2[1] = false then
Alert( "Bearish alert" ) ;
end ;
end ;
end ;
|