I do not want to declare an array value to a Var
I want to extract its text version and have do directly what the text code is.
In other words say I wrote in an external " Print("I came from a external file");
I want to bring this in and actually perform.
For instance code below works but when I try to return it say can not use on bar update.
I understand it is protected by override void, but then how to expose outside code Snippet into a compiled strategy .
try
{ // Open the text file using a stream reader.
// using (StreamReader sr = new StreamReader(path))
sr = new System.IO.StreamReader(path);
string line ;
{
// Read the stream to a string, and write the string to the console.
while ((line = sr.ReadLine()) != null) {
string[] split = line.Split(new char[] {','});
SetProfitTarget(CalculationMode.Ticks, 14);
SetStopLoss(CalculationMode.Ticks, 12);
// return split[0];
Print(split[0]);
}
Comment