Place a separator below the header row in exploration

Question about exploration. I only use one column. The exploration sorts by reverse alphabetical order because that places rows with content (signals) on top and moves down rows with no signals. That moves the separator to the last row.

How can I place the separator always below the header? Thanks

z1003

//SOME TEXT FROM THE BUY/SELL LOGIC
strlog = "BUY 2 Cts @ 20.20 STOP";

//EXPLORATION
Filter = Status( "lastbarinrange" );
SetOption( "NoDefaultColumns", True );
SetSortColumns(-1);

//Time of the explore
hora = DateTimeFormat("%d/%m/%y - %H:%M:%S", LastValue( Now(5)) );

//separator
if ( Status( "action" ) == actionExplore AND Status("stocknum") == 0 )
AddRow("-------------------------");

//WRITE RESULT
AddTextColumn(strlog, "LOG   " + hora);
1 Like
//SOME TEXT FROM THE BUY/SELL LOGIC
strlog = " BUY 2 Cts @ 20.20 STOP";

//EXPLORATION
Filter = Status( "lastbarinrange" );
SetOption( "NoDefaultColumns", True );
SetSortColumns(-1);

//Time of the explore
hora = DateTimeFormat("%d/%m/%y - %H:%M:%S", LastValue( Now(5)) );

//separator
if ( Status("stocknum") == 0 )
	AddRow("-------------------------");

//WRITE RESULT
AddTextColumn(strlog, "LOG   " + hora);

34

4 Likes

Thank you very much fxshrat! I didn't have a clue what I was doing wrong

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.