Need Help with Think or Swim Script Programming

Discussion in 'Strategy Building' started by socialintelligence99, Jan 20, 2016.

  1. Hey,

    I was wondering if I could get a quote for coding a few trading indicators, I have the indicators along with the formulas listed below

    1) Regression Line Fractal Framework-this can be built in a spread
    sheet I think?

    Price: 10 Period Regression Line Current Price

    Price: 270 Period Regression Line Current Price

    Raw Opportunity=10 Period-270 Period Current Price

    Reward: Opportunity %=Raw Opportunity/Current Price

    Risk: ATR %=1x ATR (10)/Current Price

    Opportunity Ratio=ATR's available, Opportunity %/ATR %, which gives a
    standardized risk/reward

    Reward: % distance between RL10 and RL270, opportunity is based on
    reversion to the 270

    Risk: normalized at 1x ATR


    2) Min/Max Pain-Range Compression Scanner Consolidations

    10 Day Min Pain-Top 5-10 Symbols that have lost the least % of the 10 Day High

    10 Day Max Pain-Top 5-10 Symbols that have lost the most % of the 10 Day High

    3) Intraday Statistics





    Rangestat:

    a. acronym: Rstat (see daily report)

    b. main idea: the maximum reasonable intraday move. We think of this as the limit of “Rational Exuberance” since only 1/6 of the previous 30 trading days experienced a larger intraday move.

    c. Technique: based on the formula: AverageRange(30d) + 1 StDev of Range.

    d. Preference: consider moves beyond the Rangestat intraday as “a gift”. Don’t give back professional profits earned in moves of less than a Rangestat ; don’t chase irrational exuberance, just decide how much you want to keep of it while preserving your professional profits



    . Gapstat:

    a. acronym: Gapstat (see daily report)

    b. main idea: measure the size of the gaps of the last 30 days and describe them statistically in order to classify the current opening as a large, normal or small gap day. There is a persistent correlation between the size of the gap and the size of the follow-thru, but not the direction. In other words: large gaps correlate with large follow-throughs for the rest of the day, but the direction of the large move is not predictable.

    c. Technique:

    1. Compute: Close(-1) – Open(0)/Open(0) for the last 30 and 200 trading days.

    2. Find: Max, Min, Average, and StDev.

    3. Define LargeGap as a gap > Avg + 1StDev, Smallgap as Gap < Avg – 1 StDev, otherwise Normal gap.

    4. On LargeGap days you shouldn’t be surprised if you see a move >= to Rangestat.

    5. On SmallGap days be prepared for big results from SQC technique

    d. Preference: Know this for all proposed trading targets. Prefer intraday targets with largest relative gaps.



    Failstat:

    a. acronym: Failstat (see daily report)

    b. main idea: measure the distance from Open to LOD each day for the last 30 trading days. Compute statistics to identify the AverageFail. Be alert to morning reversals if there are signs of finding support after a gap down, and a selloff of a Failstat. That would be a normal place to reverse intraday after the opening 0-30 minutes

    c. Technique: LargeGap days may go more than a Failstat without surprising us, SmallGap days may reverse sooner than a Failstat selloff.

    d. Preference: Know this for all proposed trading targets. Look for support around a Failstat below the Open on gap-down days.



    Gainstat:

    a. acronym: Failstat (see daily report)

    b. main idea: measure the distance from Open to HOD each day for the last 30 trading days. Compute statistics to identify the AverageGain. Be alert to morning reversals if there are signs of finding resistance after a gap up and a gains up to the Gainstat price level.. That would be a normal place to reverse intraday after the opening 0-30 minutes

    c. Technique: LargeGap days may go more than a Gainstat without surprising us, SmallGap days may reverse sooner than a Gainstat up.

    d. Preference: Know this for all proposed trading targets. Look for resistance around a Gainstat above the Open on gap-up days.







    Signal:Noise ratio:

    a. acronym: S/Nratio

    b. main idea: measure the average size of the real body of the last 30 days and compare to the AverageRange of the last 30 days. The real body = signal, the wicks = Noise.

    c. Technique: Signal/Range will be a number between 0 and 1 Compute for a population of peers to compare.

    d. Preference: Know this for all proposed trading targets. Prefer intraday targets with largest S/N. For intraday trading, favor those with a higher relative S/N ratio because the intraday trends are more pure signal, more directional.

    .
    4) FQN FQN-Frog Quality Ratio >= 3 minimum, greater is better, also tells
    me 1 Standard Deviation Frog Number

    Calculate the FQN for all members of the sample population, using the
    formula: AvgDailyRange(30) / StDev(30)

    Focus intraday attention to the targets with the highest FQN value, to
    create trade frames with the targets that have the highest expected
    reward: risk ratios

    Wait for 30 min after the open to make an entry decision

    Evaluate the “froggish” candidates to select the most directional
    target to enter,

    Any instrument that has a high FQN (3.0 or above)

    I was wondering a quote on the price of these indicators as a stand alone coded in tradestation easylanguage and possibly also into TDAmeritrade Thinkscript

    I appreciate it, and thank you in advance