I'm using MetaEditor (v. 3.83). I have just begun the process of attempting to teach myself the way to make use of this instrument.
I have some background in coding, but that was a few majors and several ages back. So there are only a few cobwebs floating around that are not happy about being upset.
My very first attempt is only a very simple test run of opening a long position if the previous bar's close was up and a short if the previous pub was reduced.
The simple structure was simple enough to install, but then I noticed a problem I'm not sure how to approach.
When I hit either my Stop reduction or make Take Profit numbers before the close of the current bar, and shut the position....on the next tick, a new position is opened as it is still a fact that the prev pub has not changed (meaning that if the very first buy was a lengthy, then I open a second long on precisely the same bar).
Basically, how do I code to tell ME not to open a second position on precisely the same pub?
All times are GMT. The time now is 10:57 AM.
Risk Disclosure: CLIQforex will not accept any liability for loss or damage as a result of reliance on the information contained within this website including data, quotes, charts and buy/sell signals. Please be fully informed regarding the risks and costs associated with trading the financial markets, it is one of the riskiest investment forms possible. Currency trading on margin involves high risk, and is not suitable for all investors. Before deciding to trade foreign exchange or any other financial instrument you should carefully consider your investment objectives, level of experience, and risk appetite.
CLIQforex would like to remind you that the data contained in this website is not necessarily real-time nor accurate. All CFDs (stocks, indexes, futures) and Forex prices are not provided by exchanges but rather by market makers, and so prices may not be accurate and may differ from the actual market price, meaning prices are indicative and not appropriate for trading purposes. Therefore CLIQforex doesn’t bear any responsibility for any trading losses you might incur as a result of using this data.