M mandelmus Newbie Messages 3 Likes 0 Jun 2, 2005 #1 How can I write the buy-and-hold formula? It would buy on the first day and sell on the last day of the system backtest.
How can I write the buy-and-hold formula? It would buy on the first day and sell on the last day of the system backtest.
S SvenFoster Well-known member Messages 250 Likes 10 Jun 3, 2005 #2 I think you could stick something like this in the "Enter Long" section. Code: Cum(1) = 1; basically it should only be true on the first bar... and Metastock should close it automatically at the end of the back test
I think you could stick something like this in the "Enter Long" section. Code: Cum(1) = 1; basically it should only be true on the first bar... and Metastock should close it automatically at the end of the back test
M mandelmus Newbie Messages 3 Likes 0 Jun 3, 2005 #3 Thanks ... it worked after I placed a check mark in "close on last bar of the backtest"