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

  #1 (permalink)
kaywai
singapore
 
Posts: 131 since Nov 2009
Thanks Given: 11
Thanks Received: 7

Hi,

I'm trying to code a TD Demand Point but not sure how to go about doing so.

A Level 1 TD Demand Point is defined as a low which has a higher low on either side of it and a Level 3 TD Demand Point is defined as a low which has 3 higher lows on each side of it.

So, in the first scenario, Close[1] < Close[2] && Close[1] < Close[0] and
in the second scenario Close[3] is < Close[0], Close[1], Close[2], Close[4], Close[5] and Close[6].

I would like to code it where I can determine the Level and the code does the rest.

Could anyone help?

Regards

Kay Wai

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
REcommedations for programming help
Sierra Chart
MC PL editor upgrade
MultiCharts
Trade idea based off three indicators.
Traders Hideout
How to apply profiles
Traders Hideout
Exit Strategy
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
31 thanks
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
20 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #3 (permalink)
 
cory's Avatar
 cory 
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,090


add swing indicator twice, set it to swing(1) and swing(2)

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

will try that. thanks!

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

Swing is not what I was looking for. Let me explain it further what I am trying to achieve. For example for a DemandPoint Level 1, my code would be something like this:-

if (Close[1] < Close[0] && Close[1] < Close[2])
{
DemandPoint = true;
}

AND for a DemandPoint Level 3

if (Close[3] < Close[0] && Close[3]< Close[1] && Close[3] < Close[2] &&
Close[3] < Close[4] && Close[3] < Close[5] && Close[3] < Close[6])
{
DemandPoint = true;
}

How can I code it in such a way that by altering the DemandPoint Level variable, I am able to obtain other alternative scenarios like DemandPoint Level 5 or DemandPoint Level 6, where the bool DemandPoint is true without having to have type out the if condition in full?

Reply With Quote
  #6 (permalink)
 
cory's Avatar
 cory 
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,090

you have been working on this for a whole year. Was you able to code any of demark's setup?

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

cory, demark's setup is all good now. this is another indicator from TD - TD Lines

Reply With Quote
  #8 (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
Hi,

I'm trying to code a TD Demand Point but not sure how to go about doing so.

A Level 1 TD Demand Point is defined as a low which has a higher low on either side of it and a Level 3 TD Demand Point is defined as a low which has 3 higher lows on each side of it.

So, in the first scenario, Close[1] < Close[2] && Close[1] < Close[0] and
in the second scenario Close[3] is < Close[0], Close[1], Close[2], Close[4], Close[5] and Close[6].

I would like to code it where I can determine the Level and the code does the rest.

Could anyone help?

Regards

Kay Wai

If you want to compare Low[*], then why are you testing Close[*] ??

Jon

Reply With Quote
  #9 (permalink)
 
cory's Avatar
 cory 
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,090


kaywai View Post
cory, demark's setup is all good now. this is another indicator from TD - TD Lines

you should be able to re-use the code from a working indicator.

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


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.

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