| Trading Indicators Post your custom trading indicators. If you download, remember to click INSTALL. |
![]() | | Tweet | |
"Market Delta" Footprint for TradeStation Details »» | |||||||||||||||||||||||||||
Market Delta is 3rd party software that provides interesting ways of viewing bid/ask information. This information could be useful for analyzing market behavior as price approaches a key support/resistance level. For those that use tradestation, I have created a simulation of Market Delta. Note that tradestation provides a snapshot of the bid/ask so it won't be accurate most of the time. Therefore, I have provided an option in this analysis technique to use upticks and downticks instead. Although the bid/ask info is not completely accurate in tradestation, you can determine whether it is good enough or if using upticks/downticks is preferred. This Market Delta indicator defaults to using upticks/downticks, which I find useful. For example, in the first chart below, a downswing is highlighted in the ES on 8/29. In the second chart, you can see that the simulation of Market Delta using upticks/downticks highlighted the net selling. Additional Information about the Indicator Attached is the code to simulate Market Delta. Note that if you apply this indicator to a chart and then refresh that chart, all of the Volume info at each strike price is lost. This code does not save historical information. The code supports four color gradients that are controlled by the Threshold inputs. The default Threshold settings are appropriate for the ES on a 5 or 15 minute chart. Setting the Type parameter to '1' will use upticks/downticks, setting that parameter to '2' will use bid/ask. The DisplayDelta parameter indicates whether the net selling vs net buying delta is displayed below the bars (see example below). This code can be easily modified to display Volume at each strike. This is a Paintbar indicator. From my observation, the footprint is updated in real-time in a timely manner. Experiment and play with it and see if you find it useful. Make sure to spread out the bars so that the data and bars fit neatly. I have tested this primarily with the emini S&P. This indicator was originally posted to the tradestation Forum where other traders are making enhancements to it. Download Now
Screenshots Show Your Support
| |||||||||||||||||||||||||||
| The Following 31 Users Say Thank You to ant For This Useful Post: | ||
aaa (05-02-2009), allforex1 (12-09-2008), artguy (11-27-2011), berrob (10-29-2011), edmccall1 (10-08-2011), Felis (03-18-2010), FFTrader (05-27-2009), jerryscht (09-07-2009), jhabellard (10-08-2011), kal5262 (06-02-2010), khamore1 (10-02-2011), kjaved (06-07-2009), Laurel (05-15-2009), laurus12 (12-08-2010), mushin2003 (02-28-2010), pchan (02-23-2010), phim9hi3n (01-02-2009), sunilrohira (07-12-2009), Szymon (09-22-2009), Tams (05-01-2009), trade-samarai (05-27-2009), tradepro (02-27-2010), TraderJean (05-19-2009), trey trader (02-08-2010) | ||
| Comments |
| | #2 | ||
![]() | Re: "Market Delta" Footprint for TradeStation | ||
| |
|
| The Following User Says Thank You to jmi88 For This Useful Post: | ||
sandeep shivani (07-31-2009) | ||
| | #3 | ||
![]() | Re: "Market Delta" Footprint for TradeStation Quote:
| ||
| |
|
| | #4 | ||
![]() | Re: "Market Delta" Footprint for TradeStation | ||
| |
|
| | #5 | ||
![]() | Re: "Market Delta" Footprint for TradeStation
__________________ Think before you speak...we'll both know more that way | ||
| |
|
| | #6 | ||
![]() | Re: "Market Delta" Footprint for TradeStation Many thanks, MarketMole ~bangeye~ | ||
| |
|
| | #7 | ||
![]() | Re: "Market Delta" Footprint for TradeStation Quote:
inputs: Threshold1( 150 ), Threshold2( 300 ), Threshold3( 600 ), DisplayDelta( false ), Type( 1 ), // 1 = Use Upticks/Downticks, 2 = Use Bid/Ask BidAskArraySz( 1000 ); variables: TickSize( MinMove / PriceScale ), PriceAtIndex( Open ), BaseIndex( BidAskArraySz/2 ), Red1(RGB(255,185,185)), Red2(RGB(255,128,128)), Red3(RGB(255,0,0)), Red4(RGB(128,0,0)), Green1(RGB(210,255,210)), Green2(RGB(125,255,125)), Green3(RGB(0,255,0)), Green4(RGB(0,128,0)), i( 0 ); variables: intrabarpersist Price( 0 ), intrabarpersist MyVol( 0 ), intrabarpersist VolTmp( 0 ), intrabarpersist LastTick( 0 ), intrabarpersist MyCurrentBar( 0 ), intrabarpersist Index( 0 ), intrabarpersist BidAskDelta( 0 ), intrabarpersist xDelta( 0 ), intrabarpersist TextString(""), intrabarpersist MyUpTicks( 0 ), intrabarpersist MyDownTicks( 0 ); Arrays: intrabarpersist Bid[](0), intrabarpersist Ask[](0); Array_SetMaxIndex( Bid, BidAskArraySz ); Array_SetMaxIndex( Ask, BidAskArraySz ); if (Type = 1 or Type = 2) and LastBarOnChart and BarType < 2 then begin MyVol = Ticks; PriceAtIndex = Open; if CurrentBar > MyCurrentBar then begin VolTmp = 0; MyCurrentBar = CurrentBar; MyUpTicks = 0; MyDownTicks = 0; for i = 0 to BidAskArraySz - 1 begin Bid[i] = 0; Ask[i] = 0; end; end; Index = BaseIndex + (Close - PriceAtIndex) / TickSize; if InsideBid < InsideAsk then begin if Type = 1 then begin // Use Upticks/Downticks if DownTicks <> MyDownTicks then Bid[Index] = Bid[Index] + MyVol - VolTmp else if UpTicks <> MyUpTicks then Ask[Index] = Ask[Index] + MyVol - VolTmp else begin if Close <= LastTick then Bid[Index] = Bid[Index] + MyVol - VolTmp else Ask[Index] = Ask[Index] + MyVol - VolTmp; end; end else begin // Use Bid/Ask // Warning: tradestation provides snapshot of bid/ask if Close <= InsideBid then Bid[Index] = Bid[Index] + MyVol - VolTmp else if Close >= InsideAsk then Ask[Index] = Ask[Index] + MyVol - VolTmp else begin // Last tick was between bid/ask if Close <= LastTick then Bid[Index] = Bid[Index] + MyVol - VolTmp else Ask[Index] = Ask[Index] + MyVol - VolTmp; end; end; end; MyUpTicks = UpTicks; MyDownTicks = DownTicks; VolTmp = MyVol; LastTick = Close; xDelta = 0; Price = Low; while Price <= High begin Index = BaseIndex + (Price - PriceAtIndex) / TickSize; TextString = NumToStr(Bid[Index],0) + " x " + NumToStr(Ask[Index],0); Value99 = Text_New(Date, Time, 0, " "); Text_SetString(Value99, TextString); Text_SetLocation(Value99, Date, Time, Price); Text_SetStyle(Value99, 1, 1); BidAskDelta = Ask[Index] - Bid[Index]; if BidAskDelta > Threshold3 then Text_SetColor(Value99, Green4) else if BidAskDelta > Threshold2 then Text_SetColor(Value99, Green3) else if BidAskDelta > Threshold1 then Text_SetColor(Value99, Green2) else if BidAskDelta >= 0 then Text_SetColor(Value99, Green1) else if BidAskDelta < -Threshold3 then Text_SetColor(Value99, Red4) else if BidAskDelta < -Threshold2 then Text_SetColor(Value99, Red3) else if BidAskDelta < -Threshold1 then Text_SetColor(Value99, Red2) else Text_SetColor(Value99, Red1); xDelta = xDelta + BidAskDelta; Price = Price + TickSize; end; if DisplayDelta = true then begin Value99 = Text_New(Date, Time, 0, " "); Text_SetString(Value99, NumToStr(xDelta, 0 )); Text_SetLocation(Value99, Date, Time, Low - TickSize); Text_SetStyle(Value99, 1, 1); if xDelta >= 0 then Text_SetColor(Value99, Green) else Text_SetColor(Value99, Red); end; end; | ||
| |
|
| The Following 4 Users Say Thank You to ant For This Useful Post: | ||
| | #8 | ||
![]() | Re: "Market Delta" Footprint for TradeStation Thank you - your gesture is most appreciated. I had to copy from the ViewSource of the browser to get the line brakes but that worked just fine. Have a big day. MM | ||
| |
|
![]() |
| Thread Tools | |
| Help Others By Rating This Thread | |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Soultrader's Pivots for Tradestation | Soultrader | Trading Indicators | 50 | 11-10-2009 09:12 PM |
| Pit Bull by Martin "Buzzy" Schwartz | Soultrader | Books | 4 | 05-06-2007 11:09 AM |
| Market Delta Footprint | ant | Technical Analysis | 2 | 11-09-2006 12:35 PM |
| Have you ever tried to "catch a falling knife"? | Follow The Trend | Technical Analysis | 9 | 09-27-2006 09:07 PM |