Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Help with creating a strategy from custom indicator
I would like to program a strategy to trigger longs and shorts when the the current bar crosses the entry line on the ABC portion of the PriceActionSwingPro indicator. I have never written a strategy that refers to custom indicators so I want to know what needs to be put in the "using declarations" region, the "variables" region, etc. As far as the specific "if, thens" of the strategy i can figure out myself, but the aforementioned things are the things i need help with. I have seen this page of the PAS discussion but it didnt help me much (https://nexusfi.com/ninjatrader/1272-priceactionswing-discussion-60.html)
Can anyone help me? It would be a huge help and end a lot of frustrations.
Can you help answer these questions from other members on NexusFi?
You don't need to put anything into the using declarations.
- If you have created a custom indicator, for example let's call it MyCustomIndicator
- Then in your strategy, as an example, you would just reference it like the code below:
if (Close[0] > MyCustomIndicator(yourParameterGoHere)[0])
// Do something here