Sample SMA strategy
This commit is contained in:
@@ -664,7 +664,7 @@ end;
|
||||
|
||||
procedure TForm1.OHLCButtonClick(Sender: TObject);
|
||||
const
|
||||
numRecs = 100;
|
||||
numRecs = 1000;
|
||||
lookback = 50;
|
||||
smaSlowLength = 20;
|
||||
smaFastLength = 5;
|
||||
@@ -827,8 +827,8 @@ begin
|
||||
FGScope.SetValue('current_series', TAstValue.FromRecordSeries(series));
|
||||
resultValue := callAst.Accept(visitor);
|
||||
|
||||
Memo1.Lines.Add(Format('Tick %d/%d: Close = %.2f, Signal = %s', [i, numRecs, ohlcvRec.Close, resultValue.ToString]));
|
||||
Application.ProcessMessages;
|
||||
// Memo1.Lines.Add(Format('Tick %d/%d: Close = %.2f, Signal = %s', [i, numRecs, ohlcvRec.Close, resultValue.ToString]));
|
||||
// Application.ProcessMessages;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user