I'm getting an error trying to output in a file.
I really can't understand what's going on, the code is just so simple that I don't understand where the problem could be.
I'm new to C#, and probably that is the real problem.
By the way all I'm trying to do is printing in a Txt fie date and time when an order is sent:
Code: Select all
if(Bla Bla Bla){
m_ChBrkLE.Send(m_HighestFC[0] + (Bars.Point*10*Pips));
Print(File("C:\test.txt"), CurrentDate, CurrentTime);
}
The name 'Print' does not exist in current context. "Channel_Breakout_E" [Strategy] Ln 80
The name 'File' does not exist in current context. "Channel_Breakout_E" [Strategy] Ln 80
The name 'CurrentDate' does not exist in current context. "Channel_Breakout_E" [Strategy] Ln 80
The name 'CurrentTime' does not exist in current context. "Channel_Breakout_E" [Strategy] Ln 80
That is a translation of the actual error that is in italian, so it might be slightly diffrent from usual error message.
Thanks guys!!