Help Needed to code strategy based ob various indicator — Tradetron Community
← Community

Help Needed to code strategy based ob various indicator

Strategy 2,731 views

rohit

I want to code strategy on option strike price ATM for following entry set:-
Entry Conditions

  1. Price above Vwap
  2. Price above Keltner Channel upper band
  3. MACD is in Buying. MACD line should be above Signal Line
    4.ADX greater than 25
  4. Chart Time 3min

I have coded but no signals are generated. Thanks

rohit

Thanks for your quick and kind reply

Tradetron Team Tradetron team

A correction on using Cross: Cross returns 1 only on the bar where the crossing happens, not while one line stays above the other. If you require “price above VWAP” and “MACD above signal” together using Cross, all crosses must happen on the same candle, so signals rarely fire.

For “is above” conditions

Use a direct comparison with the Position keyword:

  • Position(CLOSE(3m), -1) > Position(VWAP(3m), -1)
  • Position(MACD line, -1) > Position(MACD signal, -1)
  • Position(ADX, -1) > 25

Use Cross only for the one trigger that must be a fresh crossing. Group the conditions with AND.

To debug, add one clause at a time in Live Offline and watch the Notification Log.

Fractal bands: there is a Fractal Band keyword. Its output type must be 'high' or 'low' (the pre-filled 'All' is not valid), and you read it with Position at -1. Keyword reference: Keyword Documentation — Tradetron

:sparkles: Answer written with AI from Tradetron docs (Oct 2026). Original replies are kept above. Spot something wrong? Reply below.