Welcome to NexusFi: the best trading community on the planet, with over 200,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 -- discounts are available after registering.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I am new in this forum and I am basically new in easylanguage programming (trying to learn as a self-taught) so take patience if my questions are silly.
I am building a very easy TS which basically is recognising engulfing pattern and placing a sell limit oder on L[1].
I arbitrarily put 40 pips as TP but the Tradestation seams to forget to take the profit and is gonna close my open position just when another pattern is recognise or whe the SL is touched.
Everytime my condition is realize even though the price move way more than 40 pips the Tradestation doesn't close the position.
I've realized that if the TP is right after the candle with enter order the Tradestation is actually going to close the position correctly.
Here the code:
Thanks for your help.
Ah sorry for the really brutal english I have but I am from Italy where unfortunately there is no real possibility to learn this programming language.
Can you help answer these questions from other members on NexusFi?
don't place the Take Profit reserved word within your entry condition, this will likely lead to the situation that's only active during bars where the condition is fulfilled.
You should also read up about the SetStopPosition reserved word in the Tradestation help. To make sure that you correctly base the take profit on either the entire position or not.
If "this" is the `SetProfitTarget` keyword mentioned in the first post, then yes, this works on any chart. If "this" is referring to ABCTG's post, then yes, this works on any chart irrespective of the time frame.