Einzelnen Beitrag anzeigen
  #71 (permalink)  
Alt 19.06.17
next user next user ist offline
Premium Mitglied
 
Registriert seit: May 2015
Beiträge: 367
next user befindet sich auf einem aufstrebenden Ast
Standard

Füge in deinem Code folgendes ein (nicht verwirren lassen ):

Von
Code:
extern bool       DrawConfirmArrow=true;
zu
Code:
extern bool       DrawConfirmArrow=true;
extern bool       DrawConfirmDot=true;
Von
Code:
SetIndexStyle(0,DRAW_LINE);
SetIndexBuffer(0,ExtMapBuffer1);
SetIndexLabel(0,NULL);
SetIndexStyle(1,DRAW_LINE);
SetIndexBuffer(1,ExtMapBuffer2);
SetIndexLabel(1,NULL);
SetIndexStyle(2,DRAW_ARROW);
SetIndexArrow(2,159);
SetIndexBuffer(2,ExtMapBuffer3);
SetIndexStyle(3,DRAW_ARROW);
SetIndexArrow(3,159);
SetIndexBuffer(3,ExtMapBuffer4);
zu
Code:
SetIndexStyle(0,DRAW_LINE);
SetIndexBuffer(0,ExtMapBuffer1);
SetIndexLabel(0,NULL);
SetIndexStyle(1,DRAW_LINE);
SetIndexBuffer(1,ExtMapBuffer2);
SetIndexLabel(1,NULL);
   
if(DrawConfirmDot)
{
   SetIndexStyle(2,DRAW_ARROW);
   SetIndexArrow(2,159);
   SetIndexBuffer(2,ExtMapBuffer3);
   SetIndexStyle(3,DRAW_ARROW);
   SetIndexArrow(3,159);
   SetIndexBuffer(3,ExtMapBuffer4);
}
Damit kannst du es bequem bei den Eingabeparametern einstellen, falls du sie doch mal aktiv haben möchtest.

================================================== =======

Wenn du komplett (immer) weg haben möchtest, so mache im Code folgendes:
(Beachte, dass ist NICHT notwendig, allerdings wenn du die Codeteile wirklich nicht nutzen wirst, so solltest du sie besser auskommentieren oder löschen)

Von
Code:
extern int        MainHP=3;
extern int        SignalHP=3;
extern bool       DrawConfirmArrow=true;
zu
Code:
/*
extern int        MainHP=3;
extern int        SignalHP=3;
extern bool       DrawConfirmArrow=true;
*/
Von
Code:
double ExtMapBuffer1[];
double ExtMapBuffer2[];
double ExtMapBuffer3[];
double ExtMapBuffer4[];
double ExtMapBuffer5[];
double ExtMapBuffer6[];
zu
Code:
double ExtMapBuffer1[];
double ExtMapBuffer2[];
/*
double ExtMapBuffer3[];
double ExtMapBuffer4[];
double ExtMapBuffer5[];
double ExtMapBuffer6[];
*/
Von
Code:
SetIndexStyle(0,DRAW_LINE);
SetIndexBuffer(0,ExtMapBuffer1);
SetIndexLabel(0,NULL);
SetIndexStyle(1,DRAW_LINE);
SetIndexBuffer(1,ExtMapBuffer2);
SetIndexLabel(1,NULL);
SetIndexStyle(2,DRAW_ARROW);
SetIndexArrow(2,159);
SetIndexBuffer(2,ExtMapBuffer3);
SetIndexStyle(3,DRAW_ARROW);
SetIndexArrow(3,159);
SetIndexBuffer(3,ExtMapBuffer4);

if(DrawConfirmArrow)
{
   SetIndexStyle(4,DRAW_ARROW);
   SetIndexArrow(4,234);//(4,159);
   SetIndexBuffer(4,ExtMapBuffer5);
   SetIndexStyle(5,DRAW_ARROW);
   SetIndexArrow(5,233);//(5,159);
   SetIndexBuffer(5,ExtMapBuffer6);
}

SetIndexEmptyValue(5,0.0);    
SetIndexDrawBegin(0,K+D+S);
SetIndexDrawBegin(1,K+D+S);   
SetIndexDrawBegin(2,K+D+S);   
SetIndexDrawBegin(3,K+D+S);   
SetIndexDrawBegin(4,K+D+S);   
SetIndexDrawBegin(5,K+D+S);   
IndicatorShortName("S_p");
zu
Code:
SetIndexStyle(0,DRAW_LINE);
SetIndexBuffer(0,ExtMapBuffer1);
SetIndexLabel(0,NULL);
SetIndexStyle(1,DRAW_LINE);
SetIndexBuffer(1,ExtMapBuffer2);
SetIndexLabel(1,NULL);
/*
SetIndexStyle(2,DRAW_ARROW);
SetIndexArrow(2,159);
SetIndexBuffer(2,ExtMapBuffer3);
SetIndexStyle(3,DRAW_ARROW);
SetIndexArrow(3,159);
SetIndexBuffer(3,ExtMapBuffer4);

if(DrawConfirmArrow)
{
   SetIndexStyle(4,DRAW_ARROW);
   SetIndexArrow(4,234);//(4,159);
   SetIndexBuffer(4,ExtMapBuffer5);
   SetIndexStyle(5,DRAW_ARROW);
   SetIndexArrow(5,233);//(5,159);
   SetIndexBuffer(5,ExtMapBuffer6);
}

SetIndexEmptyValue(5,0.0);   
SetIndexDrawBegin(2,K+D+S);   
SetIndexDrawBegin(3,K+D+S);   
SetIndexDrawBegin(4,K+D+S);   
SetIndexDrawBegin(5,K+D+S);
*/       
SetIndexDrawBegin(0,K+D+S);
SetIndexDrawBegin(1,K+D+S);
IndicatorShortName("S_p");
Von
Code:
if(ArrayMaximum(ExtMapBuffer1,MainHP*2+1,i)==i+MainHP)
   ExtMapBuffer3[i+MainHP]=ExtMapBuffer1[i+MainHP];
if(ArrayMinimum(ExtMapBuffer1,MainHP*2+1,i)==i+MainHP)
   ExtMapBuffer4[i+MainHP]=ExtMapBuffer1[i+MainHP];     

if(ArrayMaximum(ExtMapBuffer2,SignalHP*2+1,i)==i+SignalHP)
   ExtMapBuffer5[i+SignalHP]=ExtMapBuffer2[i+SignalHP];
if(ArrayMinimum(ExtMapBuffer2,SignalHP*2+1,i)==i+SignalHP)
   ExtMapBuffer6[i+SignalHP]=ExtMapBuffer2[i+SignalHP];
zu
Code:
/*      
if(ArrayMaximum(ExtMapBuffer1,MainHP*2+1,i)==i+MainHP)
   ExtMapBuffer3[i+MainHP]=ExtMapBuffer1[i+MainHP];
if(ArrayMinimum(ExtMapBuffer1,MainHP*2+1,i)==i+MainHP)
   ExtMapBuffer4[i+MainHP]=ExtMapBuffer1[i+MainHP];     

if(ArrayMaximum(ExtMapBuffer2,SignalHP*2+1,i)==i+SignalHP)
   ExtMapBuffer5[i+SignalHP]=ExtMapBuffer2[i+SignalHP];
if(ArrayMinimum(ExtMapBuffer2,SignalHP*2+1,i)==i+SignalHP)
   ExtMapBuffer6[i+SignalHP]=ExtMapBuffer2[i+SignalHP];             
*/