|
|||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||
| Special offer: buy MetaStock (try for free) | Reuters QuoteCenter Real-Time Data (get a free month) | EOD Data |
|
DoubleTopBot Function · To: "Omega List" <omega-list@xxxxxxxxxx>
And yes the way the code is presented in Futures is poor, and difficult to follow, they should put it together like TASC. Hope this helps. Code:{===========User Function Choose3 ===============} Inputs: Val1(Numeric), Val2(Numeric), Val3(Numeric), Ref(Numeric); If MinList(Absvalue(Ref - Val1), absvalue(Ref - Val2), Absvalue(Ref - Val3))
= If MinList(Absvalue(Ref - Val1), absvalue(Ref - Val2), Absvalue(Ref - Val3))
= If MinList(Absvalue(Ref - Val1), absvalue(Ref - Val2), Absvalue(Ref - Val3))
= Type : Function, Name : DoubleTopBot Inputs: StrnType(Numeric), TopBot(Numeric), Near(Numeric), Win(Numeric); Vars: Trend(0),ShtTrend(0), LTrend(0), DnTrend(False), If StrnType = 0 then begin If STrnType = 1 then begin If DnTrend = True and Low <= CTLow then begin If UpTrend = True and High >= CtHi then begin If ShtTrend = 1 and High > CurHi and High > High[1] then begin If ShtTrend = -1 and Low < CurLo and Low < Low[1] then begin If ShtTrend = -1 and CurLo > Low then begin If ShtTrend = 1 and ShtTrend[1] <> 1 then begin LastLo[2] = LastLo[1]; If ShtTrend = -1 and ShtTrend[1] <> -1 then begin LastH[2] = LastH[1]; DoubleTopBot = 0; If TopBot = 0 then value1 = Choose3(LastLo[0],LastLo[1],LastLo[2],Low); If TopBot = 1 then value1 = Choose3(LastH[0],LastH[1],LastH[2],High); If TopBot = 0 then begin If TopBot = 1 then begin Type : Signal, Name : DoubleTopBot {=========DoubleTopBot System=================} Inputs: Near(0.45), Dist(6); If (DoubleTopBot(0,0,Near,Dist) = 1 or If BarsSinceEntry > 3 then ExitLong at Open;
Code to difficult? Find somebody to help you with coding here.
all systems for TradeStation all systems
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| However we try to maintain hiqhest possible level of service - most formulas, oscillators, indicators and systems are submitted by anonymous users. Therefore S4T™ does not take any responsibility for it's quality. If you use any of this information, use it at your own risk. You are responsible for your own trading decisions. Be sure to verify that any information you see on these pages is correct, and is applicable to your particular trade. In no case will S4T™ be responsible for your trading gains or losses. |
||
|
||
|