private void MonitorProfitability() { double currentClose = Close[0]; highestHigh = (highestHigh > currentClose ? highestHigh : currentClose); lowestLow = (lowestLow < currentClose ? lowestLow : currentClose); double currentProfitVariable= Position.GetProfitLoss(Close[0], PerformanceUnit.Points); MFEProfit=(currentProfitVariable>MFEProfit ? currentProfitVariable :MFEProfit); if( (!move2BreakEvenStop) && (MFEProfit>BREAK_EVEN_STOP_VALUE)){ move2BreakEvenStop = true; } if(move2BreakEvenStop){ // how do i check if the currentClose + if(currentProfitVariable<2 POINTS) { // SEND EXIT ORDER } } }
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
how to setup a default breakeven point
Collapse
X
-
how to setup a default breakeven point
i am trying to setup a stop to entry price + 2 points of the profit moves to 8 points. how can i do it.
Code:Tags: None
-
junkone,
Perhaps this reference sample will give you an idea: http://www.ninjatrader-support2.com/...ead.php?t=3222Josh P.NinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Tim-c, Today, 08:36 AM
|
4 responses
12 views
0 likes
|
Last Post Today, 02:45 PM | ||
Started by JohnS52, 03-22-2024, 08:06 AM
|
4 responses
28 views
0 likes
|
Last Post
by JohnS52
Today, 02:30 PM
|
||
Started by RaygunWizzle, Yesterday, 08:52 PM
|
2 responses
11 views
0 likes
|
Last Post
by RaygunWizzle
Today, 02:26 PM
|
||
Started by carnitron, 03-25-2024, 01:59 PM
|
11 responses
51 views
0 likes
|
Last Post
by carnitron
Today, 02:18 PM
|
||
Started by Gerik, 12-21-2023, 08:20 AM
|
15 responses
203 views
0 likes
|
Last Post
by Mindset
Today, 02:06 PM
|
Comment