Jump to content


[01 martie 2015] Vamist este prima si cea mai mare comunitate Forex din Romania. A luat nastere in 2005 si de-a lungul timpului a trecut prin mai multe transformari. Acum, dupa 10 ani, primim orice fel de traderi si investitori. Deci, indiferent daca tranzactionezi sau investesti in actiuni, valute, marfuri sau orice alt instrument, bine ai venit!

Vamist se transforma in comunitatea traderilor retail. Aceasta versiune a forumului va fi in continuare accesibila pentru oricine, dar numai in format read only.

Noua adresa este vamist.ro. Te asteptam acolo la discutii generale despre trading.





- - - - -

BcLib update - New powerful trading functions

Posted by TheEconomist, 23 November 2007 · 2438 views

BcLib Files
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().

Attached Files



  • 0



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
    • 0
  • Quote
  • Report

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
    • 0
  • Quote
  • Report

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
    • 0
  • Quote
  • Report

or Sign In

Career plan

Posted Image

My Picture

My Infocard

Bogdan Caramalac
[email protected]

Studies:
The Financial & Accounting Management Faculty within the "Spiru Haret" University, Bucharest, 2002 (BS degree issued by The Faculty of Finance, Insurance, Banking and Stock Exchanges within the Academy of Economic Studies, Bucharest)

Search My Blog

Recent Comments

Recent Entries

0 user(s) viewing

0 members, 0 guests, 0 anonymous users

October 2019

M T W T F S S
 123456
78910111213
141516 17 181920
21222324252627
28293031   
Tranzactiile forex implica un grad ridicat de risc. Informatiile de pe acest site NU reprezinta recomadari de tranzactionare sau investitii.
Administratorii vamist.ro nu-si asuma responsabilitatea pentru eventualele probleme sau pierderi materiale aparute in urma utilizarii informatiilor de pe site.