Need help translating tradestation code about volatility

Forums ProRealTime English forum ProOrder support Need help translating tradestation code about volatility

Viewing 3 posts - 1 through 3 (of 3 total)
  • #89404

    Hi, need some help understanding this code:

    Input: entry6_xr(5), entry6_daysback(10);
    Var: entry6_rrange(0);
    entry6_rrange=high-low;
    if entry6_rrange>2*stddev(entry6_rrange, entry6_xr)+average(entry6_rrange, entry6_xr) and close>close[entry6_daysback] then buy next bar at market;
    if entry6_rrange>2*stddev(entry6_rrange, entry6_xr)+average(entry6_rrange, entry6_xr) and close<close[entry6_daysback] then sellshort next bar at market;

     

    Exactly how does this one work?

    #89408

    It is a kind of volatility test, as a simple test if candlestick range is above/below bollinger bands of 2 standard deviation (average & std dev are calculated also with candlesticks ranges instead of the usual Close) and if actual Close is above/below Close “entry6_daysback” ago.

    1 user thanked author for this post.
    #89411

    Im gonna have to see the (prt)code to undertsand this i think, if you dont mind Nicolas.

    Are you saying that instead of saying “Close > bollingerup”, this is saying “Range(high-low) > bollingerup”?

     

    Cant you do the same with just “high > bollingerup”?

     

Viewing 3 posts - 1 through 3 (of 3 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login