NexusFi: Find Your Edge


Home Menu

 





Programing Support and resistance levels


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Zondor with 3 posts (7 thanks)
    2. looks_two Fat Tails with 3 posts (6 thanks)
    3. looks_3 StockT8er with 2 posts (0 thanks)
    4. looks_4 Big Mike with 2 posts (2 thanks)
      Best Posters
    1. looks_one Zondor with 2.3 thanks per post
    2. looks_two Fat Tails with 2 thanks per post
    3. looks_3 Big Mike with 1 thanks per post
    4. looks_4 marianobilli with 1 thanks per post
    1. trending_up 17,196 views
    2. thumb_up 17 thanks given
    3. group 10 followers
    1. forum 17 posts
    2. attach_file 0 attachments




 
Search this Thread

Programing Support and resistance levels

  #11 (permalink)
 
Zondor's Avatar
 Zondor 
Portland Oregon, United States
 
Experience: Beginner
Platform: Ninjatrader®
Broker: CQG, Kinetick
Trading: Gameplay Klownbine® Trading of Globex
Posts: 1,333 since Jul 2009
Thanks Given: 1,246
Thanks Received: 2,731

I updated the post (2 back from this one) about Midas Explorer to clarify some points. I do like it but this is user feedback, not any kind of advertisement. I am genuinely impressed by that product.

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote

Can you help answer these questions
from other members on NexusFi?
ZombieSqueeze
Platforms and Indicators
MC PL editor upgrade
MultiCharts
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
REcommedations for programming help
Sierra Chart
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Just another trading journal: PA, Wyckoff & Trends
25 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
21 thanks
GFIs1 1 DAX trade per day journal
16 thanks
  #12 (permalink)
marianobilli
Argentina
 
Posts: 1 since May 2014
Thanks Given: 0
Thanks Received: 1


izamu View Post
I am programming an automated trading system with a couple of other people. using R and python languages. Its time to define support and resistance and I am having hard time thinking of something satisfying, I came up with a couple of unconvinsing definitions. Any one can direct me to the straigh path?


I am doing the same thing, what I did is.

1) Any given quote must be defined with a PointType. These are High, Low, Both or None.
1.a) A High point is a point for which the previous and post quotes are lower, Low is the opposite, both means both criteria fit (it happens).

2) Later I define a support or resistance line as a quote with a value, starting date, and a tolerance percentage. This means That the next quotes do not necessarily need to "touch" the exact value.

2.a) Every High or Low point is a potencial support or resistance line.
2.b) I define an algorithm to test if if each subsequent quote either, touches, is on the correct side, or is on the wrong side of the line. If it is on the wrong side of the line then the support, or resistance is broken.
2.c) With a "Touch" the line is confirmed.
3.a) One break is allowed and this transforms the line in the opposite (support to resistance and the other way around)
3.b) After the second brake means the line is invalid and I define that date as the ending date for that line.

how many lines will you have depends on the size of your tolerance level, I found out that a value of +-20% works well.


Hope it helps!

Reply With Quote
Thanked by:
  #13 (permalink)
kpenner
Winnipeg
 
Posts: 1 since Nov 2015
Thanks Given: 0
Thanks Received: 0


I saw your posts on this subject and wondered what progress you have made in this area since these posts are from 2011 to 2014. I am looking to automate this process in either c#, Python or some other tradeable method.

Reply With Quote
  #14 (permalink)
 
gisot's Avatar
 gisot 
Milan, Italy
 
Experience: Beginner
Platform: NinjaTrader, TWS
Trading: ES, Stocks
Frequency: Every few days
Duration: Minutes
Posts: 278 since Jan 2012
Thanks Given: 385
Thanks Received: 178


RJay View Post
Support and Resistance are the result of Market Makers pumping supply into the markets at specific price levels in an attempt to influence the markets.

Hi,
do you think one main factor on these levels might be the $volume of options these market makers have sold at those levels and they need to defend them so that as many as possible of these options are going to expire worthless.
Thanks.

Reply With Quote
  #15 (permalink)
 StockT8er 
ROY, Utah
 
Experience: Intermediate
Platform: TradeStation
Posts: 81 since Apr 2020
Thanks Given: 11
Thanks Received: 6

Does anyone know why script creators only allow us to write strategies to BUY or SELL on the next BAR. or at the close of the current BAR At least this is the case
with every strategy I have tried. I have done some in TradeStation and TOS
WHY WHY can we not BUT or SELL at the instant our strategy is set up to trigger?
They have the intrabar setting , however at least on the simulated system LIVE it still only buys on the next bar. Any input? Anyone
Of course TOS won't let us automate anyways

Reply With Quote
  #16 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


StockT8er View Post
Does anyone know why script creators only allow us to write strategies to BUY or SELL on the next BAR. or at the close of the current BAR At least this is the case
with every strategy I have tried. I have done some in TradeStation and TOS
WHY WHY can we not BUT or SELL at the instant our strategy is set up to trigger?
They have the intrabar setting , however at least on the simulated system LIVE it still only buys on the next bar. Any input? Anyone
Of course TOS won't let us automate anyways

This thread is not about TOS or TradeStation, but it is about programming support and resistance levels in NinjaTrader.
Of course, it is possible to code strategies that execute intra-bar. Not seeing any problems here.

Reply With Quote
  #17 (permalink)
 
Sandpaddict's Avatar
 Sandpaddict 
Vancouver, Canada
 
Experience: Advanced
Platform: Ninjatrader, MT4
Broker: IB, Global Prime
Trading: Futures CFDs
Posts: 684 since Mar 2020
Thanks Given: 975
Thanks Received: 637


StockT8er View Post
Does anyone know why script creators only allow us to write strategies to BUY or SELL on the next BAR. or at the close of the current BAR At least this is the case
with every strategy I have tried. I have done some in TradeStation and TOS
WHY WHY can we not BUT or SELL at the instant our strategy is set up to trigger?
They have the intrabar setting , however at least on the simulated system LIVE it still only buys on the next bar. Any input? Anyone
Of course TOS won't let us automate anyways

I haven't used TS in years but I remember this too.

Can't remember solution but I do remember creating a work around that used two data feeds. One triggered where you want intrabar on your timeframe and that triggered actual execution on tick data.

Sent using the NexusFi mobile app

Visit my NexusFi Trade Journal Reply With Quote
  #18 (permalink)
 StockT8er 
ROY, Utah
 
Experience: Intermediate
Platform: TradeStation
Posts: 81 since Apr 2020
Thanks Given: 11
Thanks Received: 6

What about TradeStation? I have same problem, how ever always used simulated account

So in NinjaTrader, it will place order at the instant condition is met

Reply With Quote




Last Updated on June 7, 2020


© 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