Sari la conținut

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

Vizitator H. Yao

Guests

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

TheEconomist

Traders

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

Vizitator H. Yao

Vizitator H. Yao

Guests

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

Vizitator
Adaugă un comentariu...

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.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.