NexusFi: Find Your Edge


Home Menu

 





Design a DayTrader Scalping Order Flow Indicator


Discussion in Traders Hideout

Updated
      Top Posters
    1. looks_one hyperscalper with 136 posts (239 thanks)
    2. looks_two Chof with 22 posts (12 thanks)
    3. looks_3 Connor with 16 posts (8 thanks)
    4. looks_4 justtrader with 14 posts (8 thanks)
      Best Posters
    1. looks_one bobwest with 2 thanks per post
    2. looks_two hyperscalper with 1.8 thanks per post
    3. looks_3 SpeculatorSeth with 1 thanks per post
    4. looks_4 Chof with 0.5 thanks per post
    1. trending_up 47,951 views
    2. thumb_up 328 thanks given
    3. group 55 followers
    1. forum 248 posts
    2. attach_file 80 attachments




 
Search this Thread

Design a DayTrader Scalping Order Flow Indicator

  #91 (permalink)
 hyperscalper 
boise idaho
 
Experience: Advanced
Platform: NinjaTrader C# Custom
Broker: NinjaTrader LeeLoo Rithmic
Trading: Nasdaq Futures NQ/MNQ
Posts: 314 since Apr 2020
Thanks Given: 15
Thanks Received: 522


TWDsje View Post
Properties can also be changed by code. If you really want to get fancy you can take advantage of some of C#'s unique features to add GUI elements to the chart, or create an pop out window for it.

Also, this little bit of code is useful outside of just the OnStateChanged method:

 
Code
if (State == State.Historical)
{
}

Not that tick replay ends up being all that different from live data except perhaps for 1 second timeframes. However, this is really useful because it enables the next solution...



Anything can be saved to a file and recalled historically. Then you can do real a real empirical study about what your changes are actually doing. You won't be changing things on the fly by hand very much either because you'll already know the optimal value for the situation.

But more importantly then other people can more effectively use the work to develop it further. It will play nice with other indicators, and you can use them in strategies.

Seth: "If you really want to get fancy you can take advantage of some of C#'s unique features to add GUI elements to the chart, or create an pop out window for it."

Yep, I know that; but surely you're not saying that getting involved
with a WPF or even a WinForms Gui (using the WPF Winforms hosting
control) is EASIER than a simple file you can edit?

What's simpler than a Properties file?

I'll attach my User Interface to my Interactive Order Entry and
Analytics Strategy, by way of establishing my "bona fides" in the
area of User Interface; yes, I know that's possible... thanks.

If anybody's wanting to do a User Interface, and it's going to
be "dense" and "complex" then Winforms is the way to go...
WPF is really not up to the task that I needed for my Order
Entry and Analytics Integrated Triggering system, pic attached.

[edit] That custom facility is capable of handling many dozens of simultaneous
staggered positions, with independent automatic target profit taking; and achieving
"limit entry; limit exit" for near wholesale pricing; with LIFO accounting so partial
profits offset open losses in a complex multi-position "aggregate" trading "frame"...
Pretty much impossible to describe, and not for sale...

hyperscalper

Attached Thumbnails
Click image for larger version

Name:	Winforms-User-Interface-complex-Order-Entry.PNG
Views:	123
Size:	94.3 KB
ID:	318952  
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
MC PL editor upgrade
MultiCharts
Strategy stop orders partially filled
EasyLanguage Programming
REcommedations for programming help
Sierra Chart
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
24 thanks
What is Markets Chat (markets.chat) real-time trading ro …
19 thanks
ApexTraderFunding.com experience and review
17 thanks
GFIs1 1 DAX trade per day journal
13 thanks
EG Indicators
11 thanks
  #92 (permalink)
 SpeculatorSeth   is a Vendor
 
Posts: 780 since Apr 2016
Thanks Given: 22
Thanks Received: 1,018


hyperscalper View Post
Yep, I know that; but surely you're not saying that getting involved
with a WPF or even a WinForms Gui (using the WPF Winforms hosting
control) is EASIER than a simple file you can edit?

What's simpler than a Properties file?

Adding a text box to a chart or a popup window is a few dozen lines. Yes, it would be quite a bit easier than the code we currently have to parse text. It would also be compatible with existing NinjaTrader tools, and be easier for new programmers to understand. I have my own advanced solutions for this stuff, but if it's about helping others do similar things and collaborate I think its better to strip it down to base NinjaTrader functionality.

- SpeculatorSeth
Reply With Quote
  #93 (permalink)
 hyperscalper 
boise idaho
 
Experience: Advanced
Platform: NinjaTrader C# Custom
Broker: NinjaTrader LeeLoo Rithmic
Trading: Nasdaq Futures NQ/MNQ
Posts: 314 since Apr 2020
Thanks Given: 15
Thanks Received: 522



TWDsje View Post
Adding a text box to a chart or a popup window is a few dozen lines. Yes, it would be quite a bit easier than the code we currently have to parse text. It would also be compatible with existing NinjaTrader tools, and be easier for new programmers to understand. I have my own advanced solutions for this stuff, but if it's about helping others do similar things and collaborate I think its better to strip it down to base NinjaTrader functionality.

I'll let you have the last word on this, Seth.

My objectives were to encourage Traders to get into coding; as
well as contributing a simple but fully functional solution.

Controversy is just fine; yours is the mainstream perspective.

So, why don't you put up your proposed code solution so everyone
can see how you think it should be done? What would be the
harm in doing that? I know that you do have advanced
coding abilities... So?..... Why not?

My code would have to be converted to a "Virtual Time" based on
incoming data, everywhere in the code; and then it could work
on both Historical and RealTime data; not a huge task...

[edit] of course any allocated objects would need to be carefully
dismantled so resource leaks would be avoided on re-activations
of the Indicator, when a Property was changed; or when a run was
made in some sort of Backtester... maybe I should do it myself,
as an exercise... but I'm not making the commitment to do it yet.

hyperscalper

Started this thread Reply With Quote
  #94 (permalink)
 hyperscalper 
boise idaho
 
Experience: Advanced
Platform: NinjaTrader C# Custom
Broker: NinjaTrader LeeLoo Rithmic
Trading: Nasdaq Futures NQ/MNQ
Posts: 314 since Apr 2020
Thanks Given: 15
Thanks Received: 522


hyperscalper View Post
I'll let you have the last word on this, Seth.

My objectives were to encourage Traders to get into coding; as
well as contributing a simple but fully functional solution.

Controversy is just fine; yours is the mainstream perspective.

So, why don't you put up your proposed code solution so everyone
can see how you think it should be done? What would be the
harm in doing that? I know that you do have advanced
coding abilities... So?..... Why not?

My code would have to be converted to a "Virtual Time" based on
incoming data, everywhere in the code; and then it could work
on both Historical and RealTime data; not a huge task...

[edit] of course any allocated objects would need to be carefully
dismantled so resource leaks would be avoided on re-activations
of the Indicator, when a Property was changed; or when a run was
made in some sort of Backtester... maybe I should do it myself,
as an exercise... but I'm not making the commitment to do it yet.

hyperscalper

OK, so let's take this thing in at least 2 Phases.

Just processing data during the "backfill" State.Historical
phase turns out to be a "shyte show" using NinjaTrader.

Among other things, you may have to use a weird Data Series
which has the characteristics of a "Bid/Ask Series"; and also
in Realtime, data appears on OnMarketData; but that seems
not to be the case in the Historical phase.... it seems the
action has to take place in OnBarData... Hey, I'm not
an Indicator expert; so you can "dis me" all you want.
But, it's kind-of a a mess when you want the Indicator
to work that way...

However, I'm committed to at least doing backfill; which means
that when the Indicator is restarted, it will at least do a
decent job of characterizing Historical data; instead of just
starting with RealTime data.

It's fun looking at these things, which I don't use, since I only
use Realtime data processing...

So I'm sure y'all are "wishing me Luck" in at least getting
the Historical backfill working, before we transition into
Realtime... I did learn some things by researching this; so
it never hurts to experiment !!

I had been capturing Bid and Ask on those callbacks to the
OnMarketData overload; but the Last event carries with
it the Bid and Ask pricing; so that's good to know, and
the Last event may be the only event you have in certain
runtime phases... Good to know.

Hey, get into some coding !! That was the reason for doing
this thing... Meanwhile, back to hacking...

hyperscalper

Started this thread Reply With Quote
Thanked by:
  #95 (permalink)
 hyperscalper 
boise idaho
 
Experience: Advanced
Platform: NinjaTrader C# Custom
Broker: NinjaTrader LeeLoo Rithmic
Trading: Nasdaq Futures NQ/MNQ
Posts: 314 since Apr 2020
Thanks Given: 15
Thanks Received: 522

CLASSIC NASDAQ DIVE TOWARD END OF SESSION

The TradeFlowRisk indicator (2 instances) is shown here; and
note the situation before the "classic dive" which NQ/MNQ
performs toward the close of Tuesday's session (today).

Note the Short Risk at the top; and significant Short Inventory
prior to the dive.

I've said before that this is a "situational analysis" but it is warning
us that a dive is entirely possible...

Params are:
comment line
RISK_THRESHOLD=10
RETENTION_SECONDS=120
MULTIPLIER=2.5
BIGLOT_MINIMUM=2
TAPER_SIZE=True
SUPER_SPIKE_THRESHOLD_RATIO=4

and...
# comment line
RISK_THRESHOLD=10
RETENTION_SECONDS=900
MULTIPLIER=1
BIGLOT_MINIMUM=2
TAPER_SIZE=True
SUPER_SPIKE_THRESHOLD_RATIO=6

Note the 2 Indicator instances are set to Left margin; dragged over Price,
and also Zero is Cntl-Dragged to middle, and vertical scale is
dragged to suit; plus one of them is using a MULTIPLIER to make
it relatively bigger in swings up/down... etc. lol

hyperscalper

Attached Thumbnails
Click image for larger version

Name:	Classic-Dive2.PNG
Views:	124
Size:	270.5 KB
ID:	319066  
Started this thread Reply With Quote
  #96 (permalink)
 
TheTradeSlinger's Avatar
 TheTradeSlinger 
Huntington WV
 
Experience: Advanced
Platform: TradeStation
Trading: ES, CL
Posts: 483 since Jun 2015
Thanks Given: 877
Thanks Received: 682



I've seen quite nearly everything under the sun with regards to trading software... I think this takes the cake.

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #97 (permalink)
 hyperscalper 
boise idaho
 
Experience: Advanced
Platform: NinjaTrader C# Custom
Broker: NinjaTrader LeeLoo Rithmic
Trading: Nasdaq Futures NQ/MNQ
Posts: 314 since Apr 2020
Thanks Given: 15
Thanks Received: 522


TheTradeSlinger View Post


I've seen quite nearly everything under the sun with regards to trading software... I think this takes the cake.

Yes, here at HyperX SkunkX WorkX I do strive to be different; so I'll take that as
a) a compliment? b) an observation? or c) other ...

A user interface should be more than "just a Pretty Face"; it should actually do
something ! LOL )

( yeah, I know it's ugly; but it's oddly functional )

I'll refer you to this post:


hyperscalper

Started this thread Reply With Quote
  #98 (permalink)
 
bobwest's Avatar
 bobwest 
Western Florida
Site Moderator
 
Experience: Advanced
Platform: Sierra Chart
Trading: ES, YM
Frequency: Several times daily
Duration: Minutes
Posts: 8,172 since Jan 2013
Thanks Given: 57,533
Thanks Received: 26,292


TheTradeSlinger View Post
I've seen quite nearly everything under the sun with regards to trading software... I think this takes the cake.


hyperscalper View Post
Yes, here at HyperX SkunkX WorkX I do strive to be different; so I'll take that as
a) a compliment? b) an observation? or c) other ...

A user interface should be more than "just a Pretty Face"; it should actually do
something ! LOL )

( yeah, I know it's ugly; but it's oddly functional )

A thumbs up to both comments, actually.

Whatever works....

Bob.

When one door closes, another opens.
-- Cervantes, Don Quixote
Reply With Quote
Thanked by:
  #99 (permalink)
 
TheTradeSlinger's Avatar
 TheTradeSlinger 
Huntington WV
 
Experience: Advanced
Platform: TradeStation
Trading: ES, CL
Posts: 483 since Jun 2015
Thanks Given: 877
Thanks Received: 682


hyperscalper View Post
Yes, here at HyperX SkunkX WorkX I do strive to be different; so I'll take that as
a) a compliment? b) an observation? or c) other ...

All three hyperscalper!

Listen, nearly everyone that trades does it in their own, unique way and if this order entry and trade management tool works for your trading then more power to you (especially if you programmed it yourself, that's next level!).

I've never had to use more than a buy, sell, close, and reverse button with my trading, so perhaps not finding a use for these tools says something negative about my trading (or at least the sophistication of my order management)?

Who knows! Best of luck with your trading Hyper.

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #100 (permalink)
 hyperscalper 
boise idaho
 
Experience: Advanced
Platform: NinjaTrader C# Custom
Broker: NinjaTrader LeeLoo Rithmic
Trading: Nasdaq Futures NQ/MNQ
Posts: 314 since Apr 2020
Thanks Given: 15
Thanks Received: 522


SOME MORE OBSERVATIONS AND SCREENSHOTS

It's not that often that I hack together an Indicator, maybe
for just an example; that I actually find useful !!!

So here's another screenshot; with observations.

When the Nasdaq futures swings +/-40 POINTS = 160 TICKS
then it's hard to predict; however...

As you can see from the screen shot, even though this may
be only what I've called a "situational variable" you can
see strong correlations between Inventory/Risk and Price
swings...

Runs like this really FORCE the Trader to "chase" trend; so
at least there's some reason why the trend may be
changing... ? Just sayin' LOL

[EDIT] The Devil is in Details... Notice that the Screenshot is running on
MNQ, the micro contract; and it is possible, though not that likely, that
the same analysis side by side on the larger eMini NQ contract could show
differences in the patterns. We are looking at Time and Sales based
information here... Just sayin'... Mileage could vary...?

hyperscalper

Attached Thumbnails
Click image for larger version

Name:	NQ-large-runs-Inventory.PNG
Views:	129
Size:	261.2 KB
ID:	319082  
Started this thread Reply With Quote
Thanked by:




Last Updated on January 26, 2023


© 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