NexusFi: Find Your Edge


Home Menu

 





TD Demand Point


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one kaywai with 11 posts (1 thanks)
    2. looks_two Trader.Jon with 3 posts (0 thanks)
    3. looks_3 cory with 3 posts (0 thanks)
    4. looks_4 optntdr13 with 3 posts (0 thanks)
    1. trending_up 7,905 views
    2. thumb_up 1 thanks given
    3. group 5 followers
    1. forum 21 posts
    2. attach_file 4 attachments




 
Search this Thread

TD Demand Point

  #11 (permalink)
 
Trader.Jon's Avatar
 Trader.Jon 
Near the BEuTiFULL Horse Shoe
 
Experience: Beginner
Platform: NinjaTrader
Broker: MBTrading Dukascopy ZenFire
Trading: $EURUSD when it is trending
Posts: 473 since Jul 2009
Thanks Given: 401
Thanks Received: 184


kaywai View Post
jon, you are correct!. it should be Lows compared with Lows. Thx!

cory, I have been searching in my midst of coding other TD indicators but have not come across anything that will help me determine the points. drawing the initial line should be fine though there are rules there too.

Untested!! As a DataSeries you could have

TDDP1.Set((Low[1] < Low[2] && Low[1] < Low[0])[0]);
TDDP3.Set((Low[3] < Low[0] && Low[3] < Low[1] && Low[3] < Low[2] && Low[3] < Low[4] && Low[3] < Low[5] && Low[3] < Low[6])[0]);

DemandPoint1.Set(0);

if ( TDDP1[0] == true )
{ DemandPoint1.Set(1); }

if ( TDDP1[0] == false )
{ DemandPoint1.Set(-1); }

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Better Renko Gaps
The Elite Circle
Trade idea based off three indicators.
Traders Hideout
MC PL editor upgrade
MultiCharts
Exit Strategy
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
34 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
19 thanks
GFIs1 1 DAX trade per day journal
16 thanks
Vinny E-Mini & Algobox Review TRADE ROOM
13 thanks
  #12 (permalink)
kaywai
singapore
 
Posts: 131 since Nov 2009
Thanks Given: 11
Thanks Received: 7

Jon, I came across this code...not sure if it works but it seems more inline with what I'm trying to achieve. Please take a look.

PointA = Point;
PointB = Point;

while (PointA > 0)
{
PointA--;
PointB++;

if (Close[Point] < Close[PointA] && Close[Point] < Close[PointB])
{
if (PointA == 0)
{
DemandPoint = true;
}
else
{
PointA = 0
DemandPoint = false;
}
}
}

Reply With Quote
  #13 (permalink)
 
Trader.Jon's Avatar
 Trader.Jon 
Near the BEuTiFULL Horse Shoe
 
Experience: Beginner
Platform: NinjaTrader
Broker: MBTrading Dukascopy ZenFire
Trading: $EURUSD when it is trending
Posts: 473 since Jul 2009
Thanks Given: 401
Thanks Received: 184



kaywai View Post
Jon, I came across this code...not sure if it works but it seems more inline with what I'm trying to achieve. Please take a look.

PointA = Point;
PointB = Point;

while (PointA > 0)
{
PointA--;
PointB++;

if (Close[Point] < Close[PointA] && Close[Point] < Close[PointB])
{
if (PointA == 0)
{
DemandPoint = true;
}
else
{
PointA = 0
DemandPoint = false;
}
}
}

My gut feeling is that there is a problem ... I dont think you can have both PointA and PointB equal Point ?! I have never seen anything like " Close[Point] " to be able to comment at all ...

I guess you will find out when you add it to some already stable code as a test ..

Jon

Reply With Quote
  #14 (permalink)
kaywai
singapore
 
Posts: 131 since Nov 2009
Thanks Given: 11
Thanks Received: 7

if Point is an "int" variable, would that work? let me check it out later tonight.

Reply With Quote
  #15 (permalink)
 
wccktrader's Avatar
 wccktrader 
Singapore
 
Experience: Intermediate
Platform: NinjaTrader, Sierra Charts
Broker: Thinkorswim, IQFeed
Trading: Options of SPY, IWM, QQQ
Posts: 47 since Nov 2010
Thanks Given: 54
Thanks Received: 149

Kaywai, if your intention is to visualize the demand/supply points on a chart, esam_jir has posted an indie in the thread "fractal points (tradestation)" over the weekend which may be helpful to you. The demand/supply points that you were referring to are essentially fractal points. I have indicated the demand/supply points in the chart below:

Level 1 Demand Points : Blue triangles
Level 1 Supply Points : Red triangles
Level 2 Demand Points: Green dots
Level 2 Supply Points: Orange dots
Level 3 Demand Points: Green hash
Level 3 Supply Points: Pink hash

Attached Thumbnails
Click image for larger version

Name:	SPY (Daily)  10_7_2010 - 1_27_2011.jpg
Views:	242
Size:	83.0 KB
ID:	29644  
Reply With Quote
  #16 (permalink)
kaywai
singapore
 
Posts: 131 since Nov 2009
Thanks Given: 11
Thanks Received: 7

Thank you very much wccktrader! It looks like what I am looking for!

Pretty sure I don't understand the code but...

Reply With Quote
  #17 (permalink)
kaywai
singapore
 
Posts: 131 since Nov 2009
Thanks Given: 11
Thanks Received: 7

Jon, that code I showed you wasn't good but I came up with this (TDPoints). Wccktrader showed me a very interesting code (FractalPoints) which is more efficiently written and certainly more robust. Check it out.

Attached Files
Elite Membership required to download: TDPoints.zip
Elite Membership required to download: FractalPivot_TradeStation.zip
Reply With Quote
Thanked by:
  #18 (permalink)
 optntdr13 
Glyndon, Maryland, USA
 
Experience: Advanced
Platform: TOS
Trading: options
Posts: 24 since Sep 2010
Thanks Given: 6
Thanks Received: 49

Here is correct thinkscript code for TDPoints, hopefully it might help you with Ninja...

Attached Files
Elite Membership required to download: TDPoints_DVRLSTUDY.ts
Reply With Quote
  #19 (permalink)
kaywai
singapore
 
Posts: 131 since Nov 2009
Thanks Given: 11
Thanks Received: 7

Thx optntdr13! Any idea how i can open a thinkscript file?

Reply With Quote
  #20 (permalink)
 optntdr13 
Glyndon, Maryland, USA
 
Experience: Advanced
Platform: TOS
Trading: options
Posts: 24 since Sep 2010
Thanks Given: 6
Thanks Received: 49


Sure, what I did on my laptop was to associate Windows 7 and .ts files with notepad++. Apparently there exists some type of media file with the same extension though I haven't ever seen a file of this type so I changed the default. Otherwise, just select "open with" and browse until you find a text editor. I would post the code but it's pretty long. I also have code for the lines that I wrote as well. If you would like me to post that as well I am happy to do so. I just figured having the right code instead of most of the garbage TD indicator's out there might help. Please don't share the files outside of people you trust as I don't need the Demark trademark police coming to my house anytime soon

Reply With Quote




Last Updated on February 23, 2011


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts