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)
Hi, I want to go long directly when an outside bar is formed. When previous bar low has already been taken out I want to go long one tick above the prevoius bar high. I use IntrabarOrderGeneration and Bar Magnifier in Multicharts.
The problem is that sometime Multicharts goes long despite the outside bar is formed the opposite way (high first and low thereafter). What may the solution be? Is there a way to code to ensure that Multicharts checks in which chronological order low and high of previous bar is exceeded?
My code:
If Marketposition = 0 AND L<L[1] Then Buy next bar at H[1] + 0.0001 or higher ;
If Marketposition = 1 then sell next bar at entryprice + PTlong or higher;
If Marketposition = 1 then sell this bar at Close;
Can you help answer these questions from other members on NexusFi?
Multicharts did exactly what you coded - how should it know that you want the low to be taken out first when you didn't program that?
Having said that, you can use a boolean variable that you set to true when Close < Low[1] (of course the variable needs to be intrabarpersist and you need to use the bar magnifier). Then you can use this variable's value in your entry condition check. On a new bar you simply set this variable back to false.
Thanks. The problem was that when I made the manual check of the trades I was not aware of at which time the sessions breaks between days are set in the chart. They are set to 17.00. So now my code seems to be doing what I want.