Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
GAIN custom filltype
Collapse
X
-
Okies, well here is an attempt at a FillType for GAIN or any other broker that submits pices as bid only and only allows you to take offers/hit bids.
Short comings that it tries to address are:
Slippage is only applied to market buys.
Limit and stop buys are trigger when the bid + slippage hits the target.
Limit orders do not need to trade through to get executed.
Can get better then limit price if order is submitted on a bar with a better open.
Stop orders always get the worst of the stop price or bar open.
Ditched multiple entry on same bar logic.
To use set the slippage to the typical bid ask spread of the pair. Seems true to fills reported from live sims.Attached FilesLast edited by darckeen; 04-21-2009, 08:49 PM.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Change colour of Stop market and limit orders to red and green via indicator script
by Rapine Heihei
Started by Rapine Heihei, 04-23-2024, 07:51 PM
|
2 responses
30 views
0 likes
|
Last Post
by Max238
Today, 02:25 AM
|
||
Started by Shansen, 08-30-2019, 10:18 PM
|
24 responses
943 views
0 likes
|
Last Post
by spwizard
Today, 01:29 AM
|
||
Started by Max238, Today, 01:28 AM
|
0 responses
9 views
0 likes
|
Last Post
by Max238
Today, 01:28 AM
|
||
Started by rocketman7, Today, 01:00 AM
|
0 responses
7 views
0 likes
|
Last Post
by rocketman7
Today, 01:00 AM
|
||
Started by wzgy0920, 04-20-2024, 06:09 PM
|
2 responses
28 views
0 likes
|
Last Post
by wzgy0920
Yesterday, 10:43 PM
|
Comment