Please sketch the following Tradestation system in EL: 1) identify if there is a strong…
- User
Please sketch the following Tradestation system in EL: 1) identify if there is a strong trend up on 5 min chart, 30 min chart or daily chart 2) Use the highest available chart of the 3 above 2) If the price comes to moving average from above buy x% below that. Reverse that logic with Sell Short if downtrend
- Assistant
Inputs: Length(10); Percent(1);
Vars: TrendUp(false), TrendDown(false);
TrendUp = C > MovAvg(C, Length) AND Highest(C, Length) > Highest(MovAvg(C, Length), Length); TrendDown = C < MovAvg(C, Length) AND Lowest(C, Length) < Lowest(MovAvg(C, Length), Length);
If (TrendUp AND Highest(C, 1440) > Highest(MovAvg(C, Length), 1440)) Then Begin Buy ( "Buy MA Cross" ) Percent/100 * MovAvg(C, Length) Stop; End;
If (TrendDown AND Lowest(C, 1440) < Lowest(MovAvg(C, Length), 1440)) Then Begin SellShort ( "Sell Short MA Cross" ) Percent/100 * MovAvg(C, Length) Stop; End;
Note: This system first identifies if there is a strong trend up on the 5 minute, 30 minute or daily chart. It then selects the highest available chart of the three. If the price comes to the moving average from above, it buys x% below that. If it is a downtrend, it reverses the logic with sell short.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.