I'm using both a long- and short strategy on the same chart.
This morning, the short strategy was short three contracts when the criteria were met for a long entry of two contracts. The expected result was that 1) the three contract short position would be covered and 2) a two contract long position would be opened.
What actually happened was 1) the short position was covered and the market position went to flat--no long position was initiated (even though the signal showed "LE 3" on the chart).
Attached are pics of 1) the short strategy running by itself 2) the long strategy running by itself and 3) both long and short running at the same time. I've also included a picture of some variable values sent to output that shows the market position (MP) going to zero and not 1.00.
Maybe I need to combine the two strategies, but I'd like to understand what factors might be causing this behavior before doing that.
Thanks in advance for any input.
Two signals on one chart--unexpected results [SOLVED]
-
- Posts: 191
- Joined: 27 Apr 2010
- Location: San Jose
- Has thanked: 67 times
- Been thanked: 10 times
Two signals on one chart--unexpected results
- Attachments
-
- MP_is_flat.png
- (22.29 KiB) Downloaded 532 times
-
- Long_and_Short_signals_running_simultaneously.png
- (5.42 KiB) Downloaded 542 times
-
- Long_Signal_by_itself.png
- (4.61 KiB) Downloaded 535 times
-
- Short_Signal_by_itself.png
- (5.35 KiB) Downloaded 525 times
- Andrew MultiCharts
- Posts: 1587
- Joined: 11 Oct 2011
- Has thanked: 931 times
- Been thanked: 559 times
Re: Two signals on one chart--unexpected results
Hello PD Quig,
Could you upload the following files?
Could you upload the following files?
- Your workspace(s) with the chart(s),
- The exported scripts from PLE that are used in the workspace,
- The exported symbols from QM with data that are also used in the workspace(s).
-
- Posts: 191
- Joined: 27 Apr 2010
- Location: San Jose
- Has thanked: 67 times
- Been thanked: 10 times
Re: Two signals on one chart--unexpected results [SOLVED]
Thanks, Henry, but I decided to combine the two signals rather than try to understand the interplay between the two signals running independently. It now works as expected.
- Andrew MultiCharts
- Posts: 1587
- Joined: 11 Oct 2011
- Has thanked: 931 times
- Been thanked: 559 times
Re: Two signals on one chart--unexpected results
Sounds good so far. Let us know if you have any further questions.Thanks, Henry, but I decided to combine the two signals rather than try to understand the interplay between the two signals running independently. It now works as expected.
P.S. My name is Andrew