This thread is for discussing a strategy i created a while ago, to familiarize myself with Ninjascript, and a few commands to open and manage a trade. In that sense, it is a helping bot.
I have been using this Ninjascript command ( to create a new trade:
I found out some limitations during the development of the strategy but was always able to find a way around them without using undocumented features. I am pretty glad of the results but i am aware it certainly can be improved.
So, i wanted to share the results with you guys, and, who knows, it might inspire some of you to go a bit further and enhance what i did and spice it up. Use it at your own discretion though, and test it before using it on your real account, with market replay data.
DESCRIPTION
Once enabled on a chart, the strategy will display a series of buttons to the right side of the chart:
I wanted to develop a very simple interface, with a minimum of buttons. So there are three buttons forming a logical group, to open a new trade when certain criteria are met, and to set the initial risk.
There are two other buttons a bit lower, to fade a price level, limit the range of the region to fade or add some extra margin to your stop loss .
About the three buttons forming a logical group, the top button, is associated to the buy side. The middle button, is to manage your stop loss. The bottom button, is associated to the sell side.
Here is a table that goes over all the possibilities: