I tried to follow the zip file for breakeven trigger but I’m stuck. The file has parameters to enter long on a specific place. I already have my strategy 99% completed, all I need is the trigger but I cannot follow the steps. Does anyone ever make a video explaining how to set that up instead of a zip file???
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Request Breakeven Functions in Strategy Builder
Collapse
X
-
Hello all,
I tried to follow the zip file for breakeven trigger but I’m stuck. The file has parameters to enter long on a specific place. I already have my strategy 99% completed, all I need is the trigger but I cannot follow the steps. Does anyone ever make a video explaining how to set that up instead of a zip file???
-
Originally posted by FuturesPhantomI give up also... I may as well pretend that BarsSinceExitExecution doesnt exist. I don't believe It is not possible to create even the simplest strategy example that shows its making many trades while creating a minimum distance since a last execution.
Watch this video, it should help....
I wish Strategy Builder would allow ATM Strategy, it would save a lot of people so much time and energy
- Likes 1
Comment
-
In case anyone needs to ever to use BarsSinceExitExecution in a strategy here is sample of it in a actual strategy made to take a lot of entries and made to limit the exact number of bars since each prior exit.
FuturesPhantom
HTML Code:protected override void OnBarUpdate() { if (BarsInProgress != 0) return; if (CurrentBars[0] < 20) return; if ((Position.MarketPosition == MarketPosition.Flat)) if (Close[0] > Close[1]) // if (IsRising(EMA1) == true) if (BarsSinceExitExecution(0, "", 0) == - 1) { EnterLong(Convert.ToInt32(DefaultQuantity), ""); } else if (BarsSinceExitExecution(0, "", 0) >= 5) { EnterLong(Convert.ToInt32(DefaultQuantity), ""); } else { return; } if (Close[0] < Close[1]) { ExitLong(Convert.ToInt32(DefaultQuantity), "", ""); } } } }
- Likes 1
Comment
-
Originally posted by NinjaTrader_ChelseaB View PostHello 123r34,
I am happy to submit a feature request on your behalf for the NinjaTrader Development to consider this for a future version of NinjaTrader. Please let me know if you would like to do this.
NinjaScript Strategies are meant to have the behavior customized by the logic of the programmer including any trailing or breakeven movements.
Attached are two examples of a breakeven movement and a trailing action created with the Strategy Builder.
(Update August 5th, 2020 - changed the CurrentTriggerPrice and CurrentStopPrice variables to doubles)
NinjaTrader_ChelseaB
Does this work for renko bars?
I downloaded the template and it didnt execute.
I remember I had it working before but now it doesnt seem to move the stop loss.
Any ideas?
Comment
-
Hi litamm, thanks for posting.
This should work on any bar type in the platform. Do you see any errors in the Log tab of the Control Center? Did you add any Prints to the strategy to see if the logic is being executed when expected? Please also test using the Playback connection or Simulated data feed to help test the strategy.
Kind regards.Chris L.NinjaTrader Customer Service
Comment
-
Originally posted by NinjaTrader_ChelseaB View PostHello 123r34,
I am happy to submit a feature request on your behalf for the NinjaTrader Development to consider this for a future version of NinjaTrader. Please let me know if you would like to do this.
NinjaScript Strategies are meant to have the behavior customized by the logic of the programmer including any trailing or breakeven movements.
Attached are two examples of a breakeven movement and a trailing action created with the Strategy Builder.
(Update August 5th, 2020 - changed the CurrentTriggerPrice and CurrentStopPrice variables to doubles)
Comment
-
Hi Lester, thanks for posting.
Does the example work on your end? I would recommend using this as a template for making your trailing stop. I am not able to tell what the issue with your code is from the information provided. Please use the provided example as a base case, then work in your own entry/exit logic. Using the Print statement in the Actions>Misc menu to print data from your strategy can also be very helpful to see what conditions the strategy is hitting and which conditions are being skipped, and also useful to print variables your script is using.
Kind regards,
-ChrisLChris L.NinjaTrader Customer Service
Comment
-
[QUOTE=NinjaTrader_ChelseaB;n810922]Hello 123r34,
I have received a tracking ID for your request.
Your request for the Strategy Builder to have breakeven settings is being tracked with ID #SFT-2212.
Add me to this request also would you please?
- Likes 3
Comment
-
It would be fantastic if the script Chelsey supplied went in both directions. I have spent 8 days now trying to get this to work on long and short. Paul also created a script that worked both ways for Trailing stop but I can seem to ,make a simple change to Breakeven instead of Trailstop (I know it seems like an easy fix but I can't get it). I've tried everything and emailed and had a bunch of responses yet still no luck.
- Likes 1
Comment
-
Hallo Chelsea
ich habe den- TrailBuilderExample_NT8.zip (6,1 KB, 579 Ansichten
- getestet und funktioniert super aber allerdings öffnet er nur Long Positionen.
Ich habe leider nicht die Erfahrung dafür, währe Dir sehr dankbar.
Gruss Vasili
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by kujista, Today, 05:44 AM
|
0 responses
1 view
0 likes
|
Last Post
by kujista
Today, 05:44 AM
|
||
Started by ZenCortexCLICK, Today, 04:58 AM
|
0 responses
5 views
0 likes
|
Last Post Today, 04:58 AM | ||
Started by sidlercom80, 10-28-2023, 08:49 AM
|
172 responses
2,281 views
0 likes
|
Last Post
by sidlercom80
Today, 04:40 AM
|
||
Started by Irukandji, Yesterday, 02:53 AM
|
2 responses
18 views
0 likes
|
Last Post
by Irukandji
Today, 03:55 AM
|
||
Started by adeelshahzad, Today, 03:54 AM
|
0 responses
8 views
0 likes
|
Last Post
by adeelshahzad
Today, 03:54 AM
|
Comment