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 have the following codes that run on the 30M chart; however, I would like to attach my strategy to the 1M chart but still reference these codes to the 30M chart. Your inputs are greatly appreciated.
Can you help answer these questions from other members on NexusFi?
can you elaborate a bit more what you mean with "still reference these codes to the 30M chart"?
Trades can only be executed on Data1 (at least with legacy EasyLanguage). In case you are looking to execute trades based of Data2 data you can use variables that you evaluate on Data2 (something like setting a boolean to true when the condition is present) and then place trades on Data1 when this variable has the correct state.
I believe that I found the solution. Please let me know your thoughts.
The reason why I wanted to write my code on the 1M chart and reference the logic on 15M or 30M so that I can identify the exact minute where I entered or exited the trade. Before this, the backtesting is not very informative since I can not compare the live results with the backtesting results to the actual minute by minute.
while your code works, I am not sure that you accomplish what you have in mind. But this is something you can probably tell best yourself when you see the backtest.
Here is what I am trying to accomplish so let me know your thoughts. See below backtesting results in MC.
As you can see, the original code is referencing 30M, and I am using 1M bar magnifier to obtain the backtesting results. When I look at my backtesting results (list of trades), the resolution step is 30 minutes. So I don't know whether the trade entered at 9:01AM or 9:28AM.
When I use 1M code to reference 30M logics, I obtain a 1-minute resolution. See below.
As you can see above, I know exactly that the trade entered at 9:03M and exited at 9:13AM.
Please let me know if this makes sense or that I am trying to reinvent the wheel.