Build a simple Tradestation Strategy

Job ID: 32109584

Budget: $30 – $250 USD

This job is for building a Strategy.

Requirements.

A: must work in any minutes, daily or weekly chart type.
B. it is based on make a trade allowance once a “inside bar aka “inside day” set is found.

B1: once “B” is found I want because of “B” I want to assign a signal expiration for possible entry to that. Meaning once and inside bar is found I want a variable for signal expiration for example 5 bars. Therefore create a variable for that requirement ex 1-10 (bars)

C: the second requirement a variable of bars looking if going “long” to find the highest High x. if the variable is set to 4 then it must find the highest high of the last 4 bars.
Short entry in reverse. If it is set to 5 then find the lowest low within 5 bars.

D: the third requirement would be to build this into the stragety (no plotting required!)

This inputs:

Length( 6);
variables:

TRIXValue( 0 ) ;

TRIXValue = TRIX( c, Length ) ;

Plot1( TRIXValue, "TRIX" ) ;
Plot2( 0, "ZeroLine" ) ;

This 3. requirement is used then to look for rising if going long or falling if going short..

1. to recap for all this is to look for an inside bar then if the variable is set for example 9 (bars) then there are 9 bars of trade allowance where above requirement “C” and “D” must meet . Then go long if the price exceeded the highest high in “C” and rising trix in D. if all that is met then go long market on next bar. Short entry logic in reverse obviously.


Looking for simple and easy to understand coding with explanation notes inside code…

Variable = InsideBar_Expiration
Variable = Highest_Lowest_Bars
Variable = Trix_Lenght

The variables to be applied to short and long entry are the same
Coding must the compatible with Tradestation 9.5 you can just forward the coding in a text file or provide a unprotected eld file. If in text file I can verify that in Tradestation myself.
Related categories: Coding