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
Reference Points
Collapse
X
-
Reference Points
what i am asking is can i create a point of reference meaning this. Lets say GBP is rising and the ema 2 crosses above the ema 13. That point where they cross would be a reference point. I can then say when ema 2 crosses (at some point later in time) below the equivalent price at which the ema 2 crossed above the ema 13 - enter me short. so say the initial cross was at a price of 1.6550 and who knows maybe price went up to 1.6750, regardless, when ema 2 crosses below 1.6550, a point of reference created by the initial cross it will then take me short.
Comment
-
I believe this could get you started in the direction of what you seek: with CalculateOnBarClose set to false (updates on each incoming tick) evaluate the CrossOver rule and then the tick it returns 'true' save the last price to a variable and submit this a Entry limit order then. Of course you would need to add some safeguards against multiple orders being generated due to running this each tick and thus your entry condition can be become true / false multiple times intrabar.BertrandNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by geddyisodin, Yesterday, 05:20 AM
|
8 responses
49 views
0 likes
|
Last Post
by geddyisodin
Today, 10:34 AM
|
||
Started by DayTradingDEMON, Today, 09:28 AM
|
3 responses
19 views
0 likes
|
Last Post Today, 10:23 AM | ||
Started by Stanfillirenfro, Today, 07:23 AM
|
9 responses
23 views
0 likes
|
Last Post Today, 10:16 AM | ||
Started by George21, Today, 10:07 AM
|
0 responses
8 views
0 likes
|
Last Post
by George21
Today, 10:07 AM
|
||
Started by navyguy06, Today, 09:28 AM
|
1 response
7 views
0 likes
|
Last Post Today, 09:54 AM |
Comment