Can I hide or show the ask- and bid-lines?

 

Hi

can I hide or show the horizontal ask- (red) and bid- (grey) lines within the chart window?

thanks

 

Ask - switchable

Bid - shows as line in same colour as Grid line. maybe change properties - grid to White (if Black on White chart) ? (Grid lines disappear too)

*edit* Grid to 'None' colour

 

Thanks but I was looking for a way do do it within mql4...

What I am looking for is something like:


void ShowAskLine(bool show)

void ShowBidLine(bool show)


thanks

 
you can just creat a line that will move along together with the ask and bid price and get the price value form that line
 
bool ShowAskLine, ShowBidLine;
int start(){
   if (ShowAskLine) HLine("Ask", Ask, White);
   if (ShowBidLine) HLine("Bid", Bid, Red);
...

void HLine(string name, double P0, color clr){  //      #define WINDOW_MAIN 0
    if (!Show.Objects)  return;
    /**/ if (ObjectMove( name, 0, Time[0], P0 )){}
    else if(!ObjectCreate( name, OBJ_HLINE, WINDOW_MAIN, Time[0], P0 ))
        Alert("ObjectCreate(",name,",HLINE) failed: ", GetLastError() );
    if (!ObjectSet(name, OBJPROP_COLOR, clr )) // Allow color change
        Alert("ObjectSet(", name, ",Color) [1] failed: ", GetLastError() );
    if (!ObjectSetText(name, PriceToStr(P0), 10))
        Alert("ObjectSetText(",name,") [1] failed: ", GetLastError());
}
string  PriceToStr(double p){
    string pFrc = DoubleToStr(p, Digits);       if(Digits.pips==0) return(pFrc);
    string pPip = DoubleToStr(p, Digits-1);
    if (pPip+"0" == pFrc)       return(pPip);           return(pFrc);          }

//++++ These are adjusted for 5 digit brokers.
double  pips2points,    // slippage  3 pips    3=points    30=points
        pips2dbl;       // Stoploss 15 pips    0.0015      0.00150
int     Digits.pips;    // DoubleToStr(dbl/pips2dbl, Digits.pips)
int     init(){
    if (Digits == 5 || Digits == 3){    // Adjust for five (5) digit brokers.
                pips2dbl    = Point*10; pips2points = 10;   Digits.pips = 1;
    } else {    pips2dbl    = Point;    pips2points =  1;   Digits.pips = 0; }
    // OrderSend(... Slippage.Pips * pips2points, Bid - StopLossPips * pips2dbl
...
 

hi all,is there who need help to configure Anna Monti freebot, I already got used to the freebot in forex trading and can share experience with novices