Forum

Find number of lines in a CSV file

I have a program which gets instructions from a CSV file, I want to know if it's possible to account for the last row I executed so that the next time I check I only read instructions for newly added rows. Can I also just know the number of lines in a CSV file

Viewing and hiding indicator buffers

How do I select buffers that I can view and that I cannot view in the indicator chart window

Please assist

What causes failure to view buffer on chart window after declaring it. Or better still how can I view buffer data on indicator chart window. My indicator won't show me the buffers

Failing to export data to csv thrugh the back tester please assist

When the back tester stops the csv has nothing void OnTick () { int MyExternalFile = FileOpen ( "tate.csv" , FILE_WRITE | FILE_CSV ); FileWrite (MyExternalFile, NormalizeDouble ( SymbolInfoDouble ( Symbol (), SYMBOL_ASK ), _Digits ), 1 ); FileFlush (MyExternalFile);

Array out of range

double ParabolicSARTest() { int SARTest = 2 ; double SARArray[]; int SARDefinition = iSAR ( _Symbol , _Period , 0.02 , 0.2 ); ArraySetAsSeries (SARArray, true ); CopyBuffer (SARDefinition, 0 , 0 , 3 ,SARArray);

Please help I am trying to create an array for ratio but I receive an error

2018.06.05 19:42:23.176 2016.03.01 00:03:30 array out of range in 'Ratio expert advisor.mq5' (54,20) void OnTick () { //--- double Varience; double ChartArray[]; double TheOtherCurrencyPairArray[]; double RatioArray[]; ArraySetAsSeries (TheOtherCurrencyPairArray, true );

The robot places many buy/sell market orders during a crossover please help

#include<Trade\Trade.mqh> CTrade trade; void OnTick () { //--- double wma54MovingAverageArray[],sma5MovingAverageArray[]; double wma54= iMA ( NULL , 5 , 54 , 0 , MODE_LWMA , PRICE_CLOSE ); double sma5= iMA ( NULL , 5 , 5 , 0 , MODE_SMA , PRICE_CLOSE ); ArraySetAsSeries