[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Chart Scanner Report



PureBytes Links

Trading Reference Links

Tom,

This might work for you.


if(LastBarOnChart)
  then Begin
  if( GrossProfit <> 0 or GrossLoss <> 0 or OpenPositionProfit <> 0 )
then
    FileAppend("tadesum.csv", GetSymbolName +  ","
                    + NumToStr(GrossProfit,2)+ "," 
                    + NumToStr(GrossLoss,2) + ","
                    + NumToStr(OpenPositionProfit,2) + ","
                    + NumToStr(TotalBarsWinTrades,0) + ","
                    + NumToStr(TotalBarsLosTrades,0) + ","
                    + NumToStr(NumWinTrades,0) + ","
                    + NumToStr(NumLosTrades,0) + ","
                    + NewLine );
  end;