Sari la conținut
  • intrări
    29
  • comentarii
    230
  • citiri
    1.163.013

BcLib update - New powerful trading functions


TheEconomist

3.538 citiri

This BcLib issue adds new trading functions:

- ReliableModifyTakeProfit() and ReliableModifyStopLoss(), which attempt to place and repair the TP and SL levels , by moving them up or down (take profit, for buys and sells) , down or up (stop loss, for buys and sells) in order to avoid ERR_INVALID_STOPS, which is the only error handled by these functions. The fast functions ModifyTakeProfit() and ModifyStopLoss(), older, simply attempt to do this once without handling any error.

- ReliableOrderPlace(), which is an upgrade of the ReliableOrderSend() . The difference is that SL and TP are integers , given by the user in pips. ReliableOrderPlace() calls ReliableOrderSend() to manage placing of the order without SL and TP, then it uses ReliableModifyTakeProfit() and ReliableModifyStopLoss to set TP and SL levels. This is why, if any errors appear in the log, they are reported by ReliableOrderSend(), not by ReliableOrderPlace().

3 Comentarii


Comentarii Recomandate

Vizitator H. Yao

Postat

Hi,

 

I'm trying to using BcLib in my own code and have one question:

 

WriteLn() only show a line of text of limited length(less than half the width of window), is that correct? and is there a way to overcome this?

 

BTW, I really appreciate your excellent articles on this blog, there are thought provoking and practical at the same time. Would you mind sharing more of your arbitrage strategies and experiences? I'm very interested in this area of trading, and would to explore more and contribute if I can. I do most of my coding in Python.

 

Thank you,

 

H. Yao

Link spre comentariu
Hi,

 

I'm trying to using BcLib in my own code and have one question:

 

WriteLn() only show a line of text of limited length(less than half the width of window), is that correct? and is there a way to overcome this?

 

BTW, I really appreciate your excellent articles on this blog, there are thought provoking and practical at the same time. Would you mind sharing more of your arbitrage strategies and experiences? I'm very interested in this area of trading, and would to explore more and contribute if I can. I do most of my coding in Python.

 

Thank you,

 

H. Yao

 

Hi,

 

The text length limitation affects Comment() and CreateObject(), so they are inner limits of MetaTrader. Also, expect limitations to 32 of 16 characters (don't remember now) for order comments. You could use a MoveTextPointer() followed by WriteLn(). Once you create the text slots you need just to address them with Say() to update the contents.

For the moment, I am quite out of trading, but I'll be back once MT5 is out. I'll probably also rewrite BcLib and make a CHM file for it, once things could be adressed professionally with multiasset backtester and events.

 

Regards,

Bogdan

Link spre comentariu
Vizitator H. Yao

Postat

Hi,

 

I'm trying to using BcLib in my own code and have one question:

 

WriteLn() only show a line of text of limited length(less than half the width of window), is that correct? and is there a way to overcome this?

 

BTW, I really appreciate your excellent articles on this blog, there are thought provoking and practical at the same time. Would you mind sharing more of your arbitrage strategies and experiences? I'm very interested in this area of trading, and would to explore more and contribute if I can. I do most of my coding in Python.

 

Thank you,

 

H. Yao

 

Hi,

 

The text length limitation affects Comment() and CreateObject(), so they are inner limits of MetaTrader. Also, expect limitations to 32 of 16 characters (don't remember now) for order comments. You could use a MoveTextPointer() followed by WriteLn(). Once you create the text slots you need just to address them with Say() to update the contents.

For the moment, I am quite out of trading, but I'll be back once MT5 is out. I'll probably also rewrite BcLib and make a CHM file for it, once things could be adressed professionally with multiasset backtester and events.

 

Regards,

Bogdan

 

Thank you for your help, Bogdan. Hope you keep us informed.

 

Cheers,

 

H. Yao

Link spre comentariu
Vizitator
Adaugă un comentariu...

×   Alipit ca text avansat.   Alipește ca text simplu

  Doar 75 emoji sunt permise.

×   Linkul tău a fost încorporat automat.   Afișează ca link în schimb

×   Conținutul tău precedent a fost resetat.   Curăță editor

×   Nu poți lipi imagini direct. Încarcă sau inserează imagini din URL.

×
×
  • Creează nouă...

Informații Importante

Am plasat cookie-uri pe dispozitivul tău pentru a îmbunătății navigarea pe acest site. Poți modifica setările cookie, altfel considerăm că ești de acord să continui.