Your coding will take me a while to understand, if I even get to that point. So that's a bit of a difficulty for me.
If tomorrow's close is higher than today's (by any amount), then today is a trough...and vice versa. In what situation would this not be the case? Like a specific date where a trough occurs on BHP and it's not possible to safely buy the following day's close.
Nick, have you looked at mine? What do you think of Dave's analysis?@DaveDaGr8 Have you looked at my code yet?
@DaveDaGr8 Have you looked at my code yet?
x = y[i+1];
Buy[i-1] = 1;
trailArray[ i ] = 0.8*H; <=== I assume this is H[ i ]
function flipper_func(trail)
{
trailArray[ 0 ] = C[ 0 ];
for( i = 1; i < BarCount; i++ )
{
prev = (round(100*(trailArray[ i - 1 ])))/100;
if (C[ i ] > prev AND C[ i - 1 ] > prev)
{
trailArray[ i ] = Max(prev,0.8*H[ i ]);
}
else if (C[ i ] < prev AND C[ i - 1 ] < prev)
{
trailArray[ i ] = Min(prev,1.2*L[ i ]);
}
else if (C[ i ] == prev AND C[ i - 1] < prev)
{
trailArray[ i ] = 0.8*H[i];
}
else if (C[ i ] == prev AND C[ i - 1 ] > prev)
{
trailArray[ i ] = 1.2*L[ i ];
}
else if (C[ i ] < prev AND C[ i] > 1.2*L [ i ])
{
trailArray[ i ] = 0.8*H[i];
}
else if (C[ i ] > prev AND C[ i] < 0.8*H [ i ])
{
trailArray[ i ] = 1.2*L[i];
}
else if (C[ i ] < prev AND C[ i - 1 ] > prev)
{
trailArray[ i ] = 1.2*L[ i ];
}
else if (C[ i ] > prev)
{
trailArray[ i ] = 0.8*H[ i ];
}
else if (C[ i ] < prev)
{
trailArray[ i ] = 1.2*L[ i ];
}
else
{
trailArray[ i ] = 1.2*L[ i ];
}
}
return trailArray;
}
trail = 1;
trailArray = flipper_func(trail);
It's easy to take advantage of (VWMA) indicator
This indicator is simple yet powerful & as there are many ways to skin a cat, & there are plenty of "potential ways" to use the (VWMA) indicator to your advantage. It is a little-known fact that some of the biggest traders around incorporate the (VWMA) indicator in their own particular trading.
The issue that I have with mechanical systems and I suppose by extension the people that design them is that they, for the most part, seem to be blind to the intrinsic flaw that lies at the heart of mechanical based trading. Certain strategies will do well in certain market environments and potentially outperform their initial code. Markets change. Sometimes that change is subtle and the system still returns a profit, sometimes it is radically different and a period of underperformance will ensue.
[tossing] many systems currently being traded on the scrap heap.
One trap about out-of-sample testing that's easy to fall into is repeatedly using the same data sets. You test your system on in-sample data, looks great. You test it on out-of-sample data, it falls apart. What do you do? You go back to the system and make some adjustments. Test it again on the same data and it looks much better this time. But really, you've just made your out-of-sample data part of the in-sample data set. You can't keep making adjustments until the same out-of-sample test comes good.
To me, robustness means having a system that:The posts below somewhat highlight the dangers of systematic trading
Just these two posts alone explain why system trading at some stage will fail. The information they hold belongs in the pure gold category. When you read posts by experienced members it's time to prick your ears & listen. After reading these comments it should be a wake-up call in making sure "the systems" that you are currently trading are still fit "for purpose" otherwise you may experience heavy losses & a world of pain until the penny drops.
In summary
If you believe the markets haven't changed, the trading environment certainly has.
Skate.
Price movements in the short term will always reflect the current sentiment (emotions) of the collective crowd that's currently involved in the market. Extreme emotions such as fear and greed will produce the largest price swings.What would be some other deeply fundamental factors that will always be functioning in the market?
To me, robustness means having a system that:
1. Identifies different market regimes and trades accordingly, (eg. on/off index filter or dynamic position sizing)
2. Identifies factors in the market that are so deeply fundamental to the market that they must always function. eg. volatility expansion and contraction following each other like day and night.
I think if you have one or both of these, especially the second, you can mitigate the problems ducati mentions. Although exampes of the second are hard to find. What would be some other deeply fundamental factors that will always be functioning in the market?
Sailing the Good ship HMAS Skate |
---|
Code | Purchase Date | Purchase Price ($) | Last ($) | Units | Market Value ($) | Profit / Loss ($) | Change (%) |
|
| Actions |
---|---|---|---|---|---|---|---|---|---|---|
WGO | 11/11/2022 | 0.180 | 0.215 | 52547 | 11,297.605 | 1,839.145 | 19.44 | BUY | SELL | ||
AGY | 11/11/2022 | 0.620 | 0.700 | 15127 | 10,588.900 | 1,210.160 | 12.90 | | | BUY | SELL |
QPM | 11/11/2022 | 0.170 | 0.180 | 55466 | 9,983.880 | 554.660 | 5.88 | | BUY | SELL | |
STA | 11/11/2022 | 0.435 | 0.455 | 22691 | 10,324.405 | 453.820 | 4.60 | | | BUY | SELL |
BGL | 11/11/2022 | 0.875 | 0.890 | 10735 | 9,554.150 | 161.025 | 1.71 | | | BUY | SELL |
RNU | 11/11/2022 | 0.265 | 0.265 | 36977 | 9,798.905 | 0.000 | 0.00 | | | BUY | SELL |
TNG | 11/11/2022 | 0.090 | 0.090 | 99840 | 8,985.600 | 0.000 | 0.00 | | | BUY | SELL |
ALG | 11/11/2022 | 0.580 | 0.570 | 16640 | 9,484.800 | -166.400 | -1.72 | | | BUY | SELL |
TIE | 11/11/2022 | 0.760 | 0.745 | 13136 | 9,786.320 | -197.040 | -1.97 | | | BUY | SELL |
SYA | 11/11/2022 | 0.255 | 0.235 | 38400 | 9,024.000 | -768.000 | -7.84 | BUY | SELL | ||
Total | 98,828.565 | 3,087.370 | 3.225 |
Dear Captain,
Sailing the Good ship HMAS Skate
Well Done Captain Skate
I have updated and Verified each and every Starting Price---------------------- Friday 11th Nov 2022 OPEN logs
Well Done!
Apologies for the Logs below
I am hopeless with Computers , Copy and Paste
As I see it
Code Purchase Date Purchase Price ($) Last ($) Units Market Value ($) Profit / Loss ($) Change (%) View attachment 149299 View attachment 149300 Actions WGO 11/11/2022 0.180 0.215 52547 11,297.605 1,839.145 19.44BUY | SELL AGY 11/11/2022 0.620 0.700 15127 10,588.900 1,210.160 12.90 BUY | SELL QPM 11/11/2022 0.170 0.180 55466 9,983.880 554.660 5.88 BUY | SELL STA 11/11/2022 0.435 0.455 22691 10,324.405 453.820 4.60 BUY | SELL BGL 11/11/2022 0.875 0.890 10735 9,554.150 161.025 1.71 BUY | SELL RNU 11/11/2022 0.265 0.265 36977 9,798.905 0.000 0.00 BUY | SELL TNG 11/11/2022 0.090 0.090 99840 8,985.600 0.000 0.00 BUY | SELL ALG 11/11/2022 0.580 0.570 16640 9,484.800 -166.400 -1.72 BUY | SELL TIE 11/11/2022 0.760 0.745 13136 9,786.320 -197.040 -1.97 BUY | SELL SYA 11/11/2022 0.255 0.235 38400 9,024.000 -768.000 -7.84BUY | SELL Total 98,828.565 3,087.370 3.225
She was extremely kind to you on the open Friday the 11th Nov 2022
I have seen this before many times
View attachment 149297BUT almost never for ME!
This is a Mystery to me
What did Friday the 11th Pre-Market Calls mean on Captain Skates logs?
Did he Suggest opening price on Friday 11th or Monday 14th?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?