THX for inspirations and code samples @gomi ( @bukkan ( and all the known/unknown coders…
There is a known bug (thx in advance for help…):
Error on calling 'OnStartUp' method for indicator 'bTPA': Object reference not set to an instance of an object.
It only occurs when charttrader is closed. At startup or when changing timeframes or instruments, or pushing F5. If you stay with your chart without changing such things you can close charttrader after the NT startup and it works fine. The same if you work with charttrader open.
Why, what….
I am a visual person and therefore NT with its basic trade planning possibilities could not satisfy my requirements.
I am not a programmer. I had a concept and then did some copy paste. Therefore this code will have opportunities for improvements. That’s why I post it.
I did work at this tool by adding features; testing … I did (in a very basic way) integrate parts of my trading plan and position sizing. After all I reduced it to the max, „curve fitted“ it for me.
But I think the basic concept could work for others too.
So feel free to add and change things. It would be nice to see the results posted here and not on a vendor website.
I use a HotKey code for the close button (Close Position). You have to change it to your values in the HotKey Manager.
My code: SendKeys.Send("^%{END}"); // HotKey for "close position". This is Ctrl+Alt+End
I am using only four instruments 6E, ES, CL, GC. The settings (for changes) are in the OnStartUp section (around line 95).
It is a tool to plan a trade and then push the button. There is no after entry stuff. But you could add breakeven and other things. I don’t want it, so it is not in this indicator.
A short intro will tell a bit more:
bTPA - Kostenlose hochqualitative Videospeicherung - Upload and share your videos (
Be prepared to experience the unexpected and be ready to resolve the unexpected as you use undocumented features. It is all at your own risk.