Ninjatrader 8 Very basic Execution algo with button


I am a discretionary trader but am trying to automate as much as practically possible a small part of my trading, namely the execution – entry/exit.

I am not sure how much of it can be automated, so probably best if I start small and then add additional layers as time passes. Therefore, looking to work with someone over time depending how well they are able to do the basics, but for now probably good to get started with a basic attempt.

At a very basic level here is my execution for a long (opposite for a short):

a) I buy the market manually. I use an ATM strategy for SL/TP etc.

b) I have a pre-determined level (x) where if we close below it I exit my trade (flatten everything). I want to automate this part.

c) If we then rally and close back above (x), I buy the market again (using ATM for SL/TP). I want to automate this part.

And so on until I decide the thesis is no longer valid. I.e. this may mean 2/3/4 re-entries/exits at that same level (x) etc.

I am open to suggestion as to how best to do this, but I thought one way to do this was to have a horizontal line on the chart at level (x)? In “buy mode” any close below this line (x) will flatten all positions. Any close above the line (x) will initiate a position according to my ATM, obviously this is only if the market was below the level (x) before it closed above it. This will keep happening until I remove the horizontal line. Maybe there is a better way to do it?

I am not sure if buttons can be added easily to chart trader but this would be ideal; I press a button (eg “buy x”), this automatically places a horizontal line say 20 ticks above the current price. I can then move the line myself to level (x). Obviously if I am not in a position already I will move it above price, if I am already in a position I will move it below price. Vice versa for sell. NT8 would then flatten everything on a close below it (assuming close (-1) started above it) and execute new positions on close above it (assuming close (-1) started below it) etc etc as above. It would also be helpful to have a button that removes all existing horizontal lines to avoid me forgetting to take any off.

If doing the button or a more complicated (but easier for me to use) method takes more time it is fine just bid accordingly. I prefer something that is user-friendly for me so I can focus on my trading and not worry about my execution orders so much.

There will be modifications further down the line but this would be a great start! Any questions just ask!

Skills: C++ Programming, Metatrader, C Programming, C# Programming, Software Architecture

See more: button click visual basic, handle button visual basic, visual basic button click code, visual basic check button click, click button using visual basic, visual studio basic button, visual basic refresh button code, visual basic net tabs close button, basic php html button, visual basic addons customize button, set image background button objective, visual basic click submit button webbrowser, visual basic disable mouse button, create a very basic, very basic crm, very basic website design, very basic, ninjatrader 8 download, Very basic site with a lead capture to google sheets, ninjatrader 8

About the Employer:
( 9 reviews ) harrow, United Kingdom

Project ID: #20101624

Awarded to:


Hello, My name is Alexei, I would be happy to work with you! NinjaTrader is one of my specializations and with more than 5 years of C# development experience, I have worked on several tens of similar projects, includ More

$300 USD in 4 days
(83 Reviews)

4 freelancers are bidding on average $188 for this job


Hi, I would be eager to hear from you My video portfolio: [login to view URL] I am rated in top 3% freelancers here on my .Net C# Programming skills. I make sure you get quality product because I More

$175 USD in 7 days
(48 Reviews)

hi........................................................................................................................................................................................................................ More

$120 USD in 7 days
(185 Reviews)

Hi, How are you? Hope you are going well! I checked your project carefully, so that i feel very confident in your project because I am talented web and mobile app developer with 6 years experiences. If you give me al More

$155 USD in 3 days
(4 Reviews)