NinjaTrader 7 Indicators - OIF CLose Position With Button
futures io

Categories Help    

NinjaTrader 7 Indicators
Indicators in this section are compatible with NinjaTrader 7

OIF CLose Position With Button 5 *
FOR CHART TRADERS: This indicator is a sample of how to automate the exit of a position with a chart indicator

Version 1.1
Exported with NT 7.0.1000.11
(1.0 did not connect the Parm to the Button correctly)
(1.0 did not have MA plots
(1.1 now detects the account with the position, SIM and REPLAY overridden by live account)
(1.1 does not toggle exit button when position is closed, 1.0 did)

The method of closing the position is through an OIF file written into the "My Documents\NinjaTrader 7\Incoming" folder.

In this exmaple, when the Exit button is White
a long position is exited on a CrossUnder EMA13 x SMA20
a short position is exited on a CrossOver EMA13 x SMA20

NOTE: Change the variable OIF_Folder to point to your My Documents folder.

This indicator creates a Exit button on the toolbar
When the Exit is enabled, the button is White
When the Exit is disabled, the button is Gray

Category NinjaTrader 7 Indicators 
Suggest other entries I might like
Details: OIF CLose Position With Button
Category: NinjaTrader 7 Indicators 

October 29th, 2012
Size: 6.69 KB
Downloaded: 307 times


Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, 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.