Need Help with EasyLanguage

FxMatrix

Newbie
Messages
1
Likes
0
No prior programming experience at all. Attempting to learn EasyLanguage for about 1 week.

Having problems trying to combine several TradeStations Signals into my first Trading System.

Example of TradeStation's Signals:

{*******************************************************************
Description : Bollinger Bands Long Entry
Provided By : Omega Research, Inc. (c) Copyright 1999
********************************************************************}

Inputs: Length(9), StdDevDn(2), BarsBlw(2);
Variables: BBBot(0);

BBBot = BollingerBand(Close, Length, -StdDevDn);

If CountIF(Close < BBBot, BarsBlw) = BarsBlw Then
Buy ("BB") Next Bar at BBBot Stop;

{*******************************************************************
Description : Bullish Engulfing Pattern
Provided By : Omega Research, Inc. (c) Copyright 1999
********************************************************************}

Inputs: Length(5), NBars(3);

If CountIF(BullishEngulfing(Length), NBars) > 0 Then
Buy ("BE") Next Bar at High Stop;


What I'm attempting to do with no success so for is trying to making these signals into Condition1 and Condition2 statements.
 
{************************************************* ******************
Description : Bollinger Bands Long Entry
Provided By : Omega Research, Inc. (c) Copyright 1999
************************************************** ******************}

Inputs: Length(9), StdDevDn(2), BarsBlw(2);
Variables: BBBot(0);

BBBot = BollingerBand(Close, Length, -StdDevDn);

Condition1 = CountIF(Close < BBBot, BarsBlw) = BarsBlw


{************************************************* ******************
Description : Bullish Engulfing Pattern
Provided By : Omega Research, Inc. (c) Copyright 1999
************************************************** ******************}

Inputs: Length(5), NBars(3);

Condition2 = CountIF(BullishEngulfing(Length), NBars) > 0

// Not sure exactly what you are wanting to do here so I did this
If Condition1 AND Condition2 then buy next bar high stop ;


This is actually a quite simple thing to do. Simple of course when you know how to do such things. Not so simple when you don't understand the platform or the programming process as of yet :)
 
Top