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)
I am brand new to the world of coding, so please be a bit patient with me.
My objective is to have a profit target that is 1 ATR below the low of the entry candle (Short).
I developed the bulk of the strategy in the wizard , but I was informed by NT staff, the wizard does not have the ability to subtract the ATR, and has to be manually coded.
If someone could be so kind as to show me how to manually alter the code I would greatly appreciate it.
I would be more than happy to PM you my code.
Thank You,
BF.
Can you help answer these questions from other members on NexusFi?
Now what I'm looking to do is substitute "FloorAmt" with something like "PointAmt" (<-- not a reserved word) and "SetPercentTrailing" with "SetPointTrailing" (<--- also not a reserved word).
I've looked at the reserved words and can't seem to find a solution to this. Does anyone have an idea of how I could go about coding this? ANY info would be very much appreciated!
Now what I'm looking to do is substitute "FloorAmt" with something like "PointAmt" (<-- not a reserved word) and "SetPercentTrailing" with "SetPointTrailing" (<--- also not a reserved word).
I've looked at the reserved words and can't seem to find a solution to this. Does anyone have an idea of how I could go about coding this? ANY info would be very much appreciated!
thanks,
brandon
Try SetDollarTrailing. But, both of the trailing functions will give overly optimistic results, unless you use LIBB at the 1 tick level. Personally, I'd avoid both of them.
Try SetDollarTrailing. But, both of the trailing functions will give overly optimistic results, unless you use LIBB at the 1 tick level. Personally, I'd avoid both of them.
Gotcha, thanks for the suggestion!
I also just got the below code to work too, if anyone needs it
Just don't believe the results. Once you see them, you will certainly want to believe them.
Kevin -
I agree with you - in my past experience these results were much, muuuuch better than how the strategy actually performed in the live market. What's your opinion of this occurrence? Slippage? The trailingPct not actually being able to see the fluctuations of the market in real-time?
If so, wouldn't using the back-testing resolution of "Use look-inside-bar Back Testing" be of use in this situation?
I agree with you - in my past experience these results were much, muuuuch better than how the strategy actually performed in the live market. What's your opinion of this occurrence? Slippage? The trailingPct not actually being able to see the fluctuations of the market in real-time?
If so, wouldn't using the back-testing resolution of "Use look-inside-bar Back Testing" be of use in this situation?
thanks
-brandon
Yes, as I previously mentioned, you can get accurate results if you use Look Inside Bar Backtesting at the 1 tick level. But that usually means you can only test 6 months back, unless you have a tick database stored on your PC.