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)
In multi-charts i have written a system using power language that I am looking to optimize I am having issues getting the trade to actually play out the way I want
The entry for the strategy is determined by the cross of a fast ema and a slow ema on the 1 day chart of the USD/JPY and is also limited by whether price is above the 20 day moving average when optimized I should be able to test it on the 1 hour chart with the same code and instead just use a 480 period MA
My problem is I am able to write the code for an entry order but I cannot figure out why it wont recognize the ema's crossing under represented by a condition to exit a position I am using multi charts and the regular PowerLanguage if anyone can help I can send you the code to see whats wrong
Can you help answer these questions from other members on NexusFi?
I am able to use "Buy" for entering positions but some of the other reserve words were incorrect and I think I had a misplaced End; but I was finally able to compile thanks for the help
Ryan, my bad it should read "Buy" for entering a long position. That's the correct reserved word for entering a long position.
One thing I also noticed, that you only need to use "SetStopLoss ( Stopdist );" once, in case you are using it with the same value. If you want to use different stops for a long and short, you'd have to place it within a
bracket.
You can use the default stop code, to choose if the stop amount should be used for the whole position or per contract