- Joined
- 8 June 2008
- Posts
- 13,228
- Reactions
- 19,518
Fully agree cf Bernie, even with the millennials, a communist dinosaur has no chance against Trump so what is the market cheering is Trump reelection odds increasing.@ducati916 is another member who nails alternative point of views & even at times clarifies missed information in a previous post in the vein of helping others. When there is a variety of views expressed - the education value increases.
Let's talk about the U.S markets
I'm the first to admit that I have no interest in the US Markets but I do read @bigdog "NYSE Dow Jones thread" religiously. I'm also first to concede there is a correlation "a cause & effect" relationship between our market & the U.S markets. This correlation has prompted me to make a few comments of Trump, the pending US elections & the relationship to the U.S. markets.
Stocks have surged under Trump
At the moment the markets are cheering for Trump's re-election at the end of the year. Collectively traders are relieved that the US-China trade war has cooled - now the next hurdle to overcome is India.
Consensus
IMHO - Traders around the world will be happy with another 4 years of Trump. It's worth remembering the S&P 500 has climbed nearly 50% with the Dow's annualised gain of 13% since Trump took office. Another consideration, the Nasdaq has had an 8% gain this year. After reading the stats above, to me an alternative President in the White House looks bleak for traders.
Here comes Bernie
It's early days but at the moment Bernie Sanders is the current frontrunner for the Democratic presidential nomination & surprise, surprise the markets are still going up, nudging higher to near 30,000 points. (discounting for the minor daily blips along the way)
Why are the markets bullish?
If Bernie keeps going that's a positive for traders & for Trump, in a nutshell Trump is pro-business.
Summary
We are all cheering for Bernie & if we aren't "we should be" because Bernie is actually making the markets bullish at the moment. Trump versus Sanders is a chalk & cheese comparison, meaning this match off (IMO) adds weight to the re-election of Trump - the main reason the markets are currently bullish.
Skate.
Fully agree cf Bernie, even with the millennials, a communist dinosaur has no chance against Trump so what is the market cheering is Trump reelection odds increasing. Same as locally ASX was going up with bad news cf virus as this implied future rate cuts.problem is virus is actually sabotaging the actual profits on the asx....
Following both a change of circumstances and the trigger of the Dump it thread by Skate, I decided to plunge again into system trading.Based on code provided initially by Skate and after discussions with @Lone Wolf, @Newt, @jjbinks and @Habakkuk and @Wyatt, I heavily tweaked the initial code and ended up with a relatively stable system various backtests on various periods as well as some walk forward tended to reassure me a bit. Note that I am not fully happy with the exit and DD, and as time goes I might refine the systems with conditional stop loss etc
Thinking along and welcoming your inputs: I currently have 2 systems live: 1 & 2 with #1 first anniversary tomorrow to the day I am happy with the decent performance of system1 and the learning process and discipline gathered along; System2 is a system1 improved version under certain market behaviours so not always better but sometime I do not have extra cash available for play at the moment: I am playing with 2 others systems on paper, both better in backtests than these 2 (and this does not include the zigzag grail) What would you do? Close slowly one of your running system (slowly, just not investing anymore to let winners go as it took long enough to get these selected, but not investing anymore) and ramp up system 3 or 4? Have you met such dilemma? Up to you
There are clear leads to follow so I will definitively carry on work to improve my design
my systems will soon go back to 0 or negative annual returns if the trends carry on :-(
@Skate, Comparing my weekly system results, i noticed that my #bars reflected nb of days..not weeks. Is this something you experienced during your systems development?
Thanks for the clear answers.plenty of good advices and hints..i know it is AB focused but i hope this will help others.@qldfrog first off, I've never experienced the issue that you are describing but I can say "minor coding or parameter settings" can cause headaches as minor issues can replicate themselves throughout the backtest & exploration. @Nina4 has given you some great examples but as you have directed a question to me I'll give you a few ideas from my perspective.
Making suggestions without the facts
I've neglected to make a comment previously in your thread as an examination of your code is required. Let me put it another way: it's like being at the doctors for a checkup & while you are there you ask the doctor a simple question "my wife is not feeling well, what do you think is wrong with her"
Suggestions
1. Open your .apx file as it contains every bit of information contained in your strategy as all of the parameters & settings are contained in this one file. If you don't use an .apx file to load your strategy "you should" If you don't have an .apx file make one & by examining it I'm sure you will find the issue.
View attachment 100773
2. Make sure the periodicity in your Analysis setting is correctly selected
View attachment 100774
3. Write a periodicity check in your code - so it's Okay to execute (example below)
OkToExecute = Interval() == inWeekly;
4. Also, you can write an "else statement" to verbally warn you, stopping the execution of your code till the periodicity is corrected - meaning if the periodicity is wrong a display message will be displayed with a verbal warning why the execution cannot proceed. (example below) - The reason for the warning below: the last analysis was set to "Daily".
View attachment 100775
Sample of an else statement
else
{
msg = "Skate, this formula needs to be executed in WEEKLY timeframe.";
Say( msg );
else
DisplayGfxTitle( msg );
}
I have checks & balances in all my strategies
The above code is supplied as an example "only" of the checks & balances I have coded in to every strategy as I run many Backtesting/Explorations over many different time frames. The additional code also executes the same warning on the charts. With the amount of coding & variety of strategies we all test I for one couldn't live without running my tests without first using the Analysis Project File (.apx file) to load the .afl. Without checks & balances when executing a strategy I believe mistakes would be frequent.
Chart Example
Check & Balances in the coding - "Nothing to see here as the " CORRECT periodosity is selected (Weekly)
View attachment 100778
Peridosity Chart Checks & Balances
Check & Balances in the coding - "A warning message is displayed with an audible alert" as the INCORRECT periodicity has been selected (Daily) - the strategy is weekly
View attachment 100779
Skate.
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?