NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 12-30-2008, 07:08 PM   #1
Serutuf
Junior Member
 
Join Date: Jun 2008
Posts: 5
Thanks: 0
Thanked 0 times in 0 posts
Default Scalping a range bound Forex Pair

Can a Ninja Script strategy be written to take advantage of a range bound Forex pair? For instance let us say USDJPY is stuck in a 20 pip range. We can manually enter a limit order to buy at 90.10 and with an ATM strategy take profit at 90.30.

To repeat the process we have to wait for the profit target to be filled and then again manually enter another limit order to buy at 90.10 with an ATM strategy to take profit 20 pips later.

Can this process be automated to repeat once the profit target has been reached to automatically enter a limit order to buy again at 90.10?
Serutuf is offline  
Reply With Quote
Old 12-31-2008, 04:32 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,421
Thanks: 252
Thanked 982 times in 964 posts
Default

Hi Serutuf, sure you can code a NinjaScript strategy that scalps the pair this way - please see this link here for more info to get you started this way - http://www.ninjatrader-support.com/H...verview39.html

To learn how to connect the strategy with your ATM strategy templates, please see this link - http://www.ninjatrader-support.com/H...trategies.html

To see sample code, please study the SampeATMStrategy in your NinjaScript editor.
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 12-31-2008, 06:12 AM   #3
Serutuf
Junior Member
 
Join Date: Jun 2008
Posts: 5
Thanks: 0
Thanked 0 times in 0 posts
Default Grid Trading

Thanks for the prompt reply.

What I want to create is a grid trading strategy to buy at 10 pip or a user defined interval and sell when 10 pips in profit. Has anyone set this to a strategy?
Serutuf is offline  
Reply With Quote
Old 12-31-2008, 06:23 AM   #4
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,421
Thanks: 252
Thanked 982 times in 964 posts
Default

I am not aware of this type of strategy available already, but it should be doable with custom programming in our NinjaScript environment - in case you want professional programming services, please contact these NinjaScript consultants - http://www.ninjatrader.com/webnew/pa...injaScript.htm
NinjaTrader_Bertrand is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pair trading / Spread trading HelloHello Automated Trading 8 09-18-2010 08:55 PM
Between Range cirion Indicator Development 14 12-17-2008 05:17 PM
How to get currency pair charts with yahoo finance connection? TraderGreg Charting 1 08-13-2008 01:01 PM
"MarketPosition(Pair, Account)" trickofthetrade Historical NinjaTrader 6.5 Beta Threads 1 03-27-2008 01:24 PM
License for Forex trading with Gain Capital/Forex.com kgillis23 Automated Trading 1 10-26-2007 12:28 PM


All times are GMT -6. The time now is 09:35 AM.