PDA

View Full Version : Amibroker, anyone?



Ticki
05-17-2006, 08:10 PM
I only got a copy of AmBroker ver 4.70 for backtesting functions but haven't got down to it however. Previously, I used MetaStock Professional ver 8. My aim is a more demanding user-interface with similar or better outcomes.

Any remarks regarding AmiBroker?

Thanks.

Stumbleine
11-14-2021, 09:11 PM
Historical
http://blog.tipster.ca/2012/02/data-from-mt4-to-amibroker-orders-from.html

Actual time
Use the DDE Plugin for MT4 to Amibroker
Or - data from your broker to amibroker I would also like to Include this link to the theme.
Http://www.amibroker.com/dde.html

It has MT4 example inside, and an hint about backfilling your background when you've connected via DDE.

About the AFL code we have been talking before, I've got lots of job goin' on lately, so actually got time atm to create for orders. The person who wanted it badly would make it, im convinced
Will keep in touch, cya.

P.S. By the way, Tipster, you inspired me a lot once in a while, I'm trying for the greater job about auto-trendlines and geometry patterns like triangles, flags, channels etc.. Am also earning a trading platform via Amibroker for the russian market.
Thank you.

jotagete
11-14-2021, 10:32 PM
Well sort of but not sure why you would wish to do this. It may be done but that I havne't tried it in a long long time because MT4 build changes lots of the EA's and scripts don't work anymore. Are you still looking for this operation?

oxdnice
11-14-2021, 11:53 PM
Hello, as a junior member I can not begin a new thread and I figure that this is the nearest to my need.

Can there be any accessible and reliable way to pass order from Amibroker to MT4?

Thank you in advance

LuChwznO
11-15-2021, 01:13 AM
Does anybody know of any publicly disclosed Forex systems that have been demonstrably profitable when walk-forward-tested in Amibroker? I've been having a hard time loing anything that works. I really like Larry Connor's books about High Probability methods for trading ETF's, and am looking for something like Forex. Just simple systems that may be back-tested and WF-tested. I would like to take a system that is proven to operate, and use it as a foundation to experiment with. Each time I have seen someone compose AFL code to back-test a totally free program in Amibroker, it has revealed that the machine did not work really well.

yung_mokte
11-15-2021, 02:34 AM
None. It is just meant as inspiration. It is one of millions possibilities. For sharing it just like that it was too much work and selling makes no sense since I'm using it. Maybe occasionally later on I will make it people, don't know yet. Help ... currently no, since it's fully functional.

jotagete
11-15-2021, 03:55 AM
FYI I've made three short videos which reveal a AmiBroker chart trading plug-in I have made. It can be used for Interactive Brokers, Metatrader or any other API. Are you going to share this or are you searching for assistance?

yung_mokte
11-15-2021, 05:16 AM
FYI, I have made three short videos that show a AmiBroker chart trading plug-in I have made.

It may be utilized for Interactive Brokers, Metatrader or any other API. http://is.gd/mKnwji
Tradereport table http://is.gd/WDaSEy
MT4 API log http://is.gd/sLYhgu

https://www.youtube.com/embed/Yjq-hmngz7E?origin=https://www.cliqforex.com
https://www.youtube.com/embed/Xy62WSb89kU?origin=https://www.cliqforex.com
https://www.youtube.com/embed/Lu7U5kO6whk?origin=https://www.cliqforex.com

tatpk050
11-15-2021, 06:36 AM
Hey, dastwo. In fact I've just found it didn't try it yet, because the markets have been closed on weekends, but I am sure it's working and is pretty straightforward to use. The tricky part is to make static vars within amibroker to trace all of the orders with magical numbers.

I will post complete afl here as soon as it's going to be prepared, but it might take some time. For now you can test it yourself via amibroker by producing the document and writing into it.

Once again, I am not sure about filenames, since I haven't tried it yet, only giving you a hint how to... Did anyone have success in writing this code for Amibroker?

I tried hard but I could not write this code. I believe that the secret is in the fopen() and fputs() works, but I don't know how to do this...

Could anybody give some help?

jotagete
11-15-2021, 07:57 AM
Btw what's cheapest forex data feed for amibroker? Historical
http://blog.tipster.ca/2012/02/data-from-mt4-to-amibroker-orders-from.html

Actual time
Utilize the DDE plug-in for MT4 into Amibroker
Or data from the broker to amibroker

Heart
11-15-2021, 09:18 AM
Btw what is forex data feed for amibroker?

Stumbleine
11-15-2021, 10:39 AM
May be I misunderstood you today, dastwo, however, all the detailed descriptions of these things to be exported can be found at MQL docs.

http://docs.mql4.com/trading

raqwl1891
11-15-2021, 12:00 PM
No Tipster, I believe you misunderstood. I am aware for exporting the CSV file that I do not need Mt4. I wished to know what's needed to be exported by Amibroker to ensure Metatrader can read all order chances. And I'm unfamiliar with MT4 order adminiion. Here there's the description of this mql script
APPEARS TO WORK BUT NOT FULLY TESTED This is a crude API for MT4. It allows external appliions to command MT4 to perform, alter, close and delete trades Shop in experts/scripts and compile This script folder experts/files every Repeat_Delay_Seconds to get a document commandfile.txt When it exists, reads a single transaction command according to examples below.:
OrderSend,AUDUSD,OP_BUY,1,Ask,5,0,0,Order1,9999,0, Orange OrderSend,AUDUSD,OP_BUYSTOP,1,0.7670,5,0,0,Order2, 9999,0,Orange OrderModify,Order1,0.7695,0.7620,0.7720,0,Orange OrderClose,Order1,1,Bid,5,Purple OrderDelete,Order1 Note that the arrangement of the CSV lines is similar to the original purpose calls.
A significant point about managing existing orders ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The controls OrderModify, OrderClose and OrderDelete loe the order that they're targetting with its Comment, NOT by its own ticket number.
When the command in commandfile.txt is powerful it is deleted and the command is written to commandfile_log.txt Unsuccessful commandfiles are renamed FAILED command . Txt Maintains list of open orders in openorders.txt in format: OrderOpenTime,OrderComment,OrderMagicNumber,OrderS ymbol,OrderType,OrderLots,OrderOpenPrice,OrderStop Loss,OrderTakeProfit

jotagete
11-15-2021, 01:20 PM
Hi Tequilla, thank you very much for supplying that code snippet! I guess it's not yet the entire code that you mentioned but just an example. Will look at it and report back. Looking forward to the complete code (if you're willing to discuss it) as I am not familiar with metatrader. You do not have to know MT4 to do this, there is already an EA/script which will read the text file created by the AFL code above (. . .did you intend AFL??)

There's quite a little more code required to make this bullet evidence. But it's not a huge deal if you know what your doing. Great job so far!!

I can not believe this code doesn't exist yet, as in MT4 and AMI have been around a long time...

jorge1291
11-15-2021, 02:41 PM
Hi Tequilla, thank you very much for supplying that code snippet! I guess it's not yet the full code you mentioned but just an example. Will look at it and report back. Looking forward to the complete code (if you're inclined to discuss it) as I am not familiar with metatrader.

Stumbleine
11-15-2021, 04:02 PM
Hi , thanks. And just how do you create that csv file with Amibroker? Have you got an instance in place? Have you tried it yet? Hey, dastwo. Actually I have just found it so didn't try it yet, because the markets are closed on weekends, but I'm sure it is working and is pretty simple to use. The most tricky part would be to create static vars inside amibroker to follow all of the orders with magical numbers.

I will post complete afl here when it's going to be ready, but it might take some time. For now you can try yourself through amibroker by creating the document and writing into it.

Inserted Code _SECTION_BEGIN(Documents); Filepath = ParamStr(Path to trading documents, C:\\Metatrader\\specialists\\TradeFromCsvFile\\); Inputfile = ParamStr(Input filename, commandfile.txt); _SECTION_END(); function ToFile(sOrderString) Result = False; Filename = Filepath Inputfile; File=fopen(Filename,a); should (Document) fputs(sOrderString n(Document); fclose(File); Result = True; return Result; _SECTION_BEGIN(Action); AutoTrade = ParamToggle(Auto trade, Away|Running); BuyOrder = ParamTrigger(Place Buy order,Buy); SellOrder = ParamTrigger(Place market order,Sell); CloseAll = ParamTrigger(Close all places,Close all); CancelAll = ParamTrigger(Cancel all orders,Cancel all); Reset= ParamTrigger(Reset, Reset); _SECTION_END(); if (! Autotrade) ChartId = GetChartID(); Price = int(Study(TR, ChartId)); Stop = int(Study(ST, ChartId)); Profit = int(Study(PR, ChartId)); ReadyForTrade = Price gt; 0 AND Profit gt; 0 AND Stop gt; 0; Title = trading style: WriteIf(ReadyForTrade, Manual, ready\n, Manual, not ready\n); Title = Title EncodeColor(colorSkyblue) Trade price: WriteIf(Price gt; 0, StrFormat(%g, Price), Create Study with TR id) \n; Title = Title EncodeColor(colorRose) Stop price: WriteIf(Stop gt; 0, StrFormat(%g, Stop), Create Study with ST id) \n; Title = Title EncodeColor(colorPaleGreen) Profit price: WriteIf(Profit gt; 0, StrFormat(%g, Profit ), Create Study with PR id) \n; should (SellOrder AND LastValue(Price) gt; 0) SellLimit(Price(Number); if (BuyOrder AND LastValue(Price) gt; 0) BuyLimit(Price, Quantity); /* function BuyLimit(Price, Quantity) sOrderString = OrderSend, logo, cmd, quantity, price, slippage, stoploss, takeprofit, comment, magical, expiry, arrow_color ToFile(sOrderString); */
once more, I'm unsure about filenames, because I haven't tried it yet, just giving you a clue how to work with documents in ami. Pretty simple...
This is a code to trade with research. Create a study line and give it a name, like TR (Trade pride), ST (Stop reduction), PR (Profit). Then you'll have the ability to send orders out of ami to metatrader
Ofcourse you'll need to rework some of the code and complete it, because im writing all this at forums
It's up to you to dig it up...

p.s.s And because the MQL script is available you can make anything you want out of it, since you already got the base!

Giveloveatry
11-15-2021, 05:23 PM
I only got a copy of AmBroker ver 4.70 for backtesting functions but have not got it down however. Previously, I used MetaStock Professional ver 8. My aim is a friendlier user-interface with similar or better outcomes.

Any remarks regarding AmiBroker?

Thanks. I use ami for backtesting and creating my EAs. I wont pay anybody for additional software. Value it paying for them simply cant. You may configure everything, You have free upgrades and also lot of folks uses so that You can have answere for all the questions You have.

jorge1291
11-15-2021, 06:43 PM
Great day!
It was quite fruing when my first article was not approved by mod, tho it was composed well... I was asking to share the solution with Amibroker MT4 orders. I've found one. And am here to talk about this with anybody who still struggles to connect Amibroker to Metatrader in order to send orders.

Please find the link below quite useful:
http://paulsfxrandomwalk.blogspot.com/2009/12/crude-api-for-metatrader-4.html

With MQL connected there you will be able to send orders to Metatrader through text file. Good luck. Hello Tequilla, thanks. And how can you make that csv file using Amibroker? Have you got an example set up? Have you tried it yet?

Stumbleine
11-15-2021, 08:04 PM
Good day!
It was quite fruing when my very first post was not approved by mod, tho it was written well... I was asking to share the solution with Amibroker MT4 orders. I've found one. And am here to talk about this with anybody who still struggles to join Amibroker to Metatrader in order to send orders.

Please see the link under quite helpful:
http://paulsfxrandomwalk.blogspot.com/2009/12/crude-api-for-metatrader-4.html

With MQL connected there you will be able to send orders to Metatrader via text document. Good luck.

xxaurix
11-15-2021, 09:25 PM
I have used AmiBroker for 5yrs would not use anything else. Can not beleive that people would pay the price that the others are charging. The price differance is mainly due to the number the other appliions organizations are spending on advertisment to tempt you into buying there product. If you find something that AmiBroker can not do, then you have not read the users guide. It's possible, with a DDE link, tie it together with MT. Haveing AB do the job and sending orders to MT to open/close the rankings. I would love any information on how to connect AB using MT4 platform. I am using MT4 for a little while but just started with AB.

Thank you.

jotagete
11-15-2021, 10:46 PM
If you need assistance, just ask here. I utilize MQL and Ami.
There are lots of support forums around for Ami. This forum is excellent for MT4.

AFL is not to hard either but the routines you want to manage order flow is tougher than MQL. Ami backtesting is exceptional though.

jarivfer
11-16-2021, 12:06 AM
You should look at

http://amibroker.com/guide/h_quotes.html

to see the Various possibilities. There you may read, that DDE is only accepting STREAMING Data - not backfills. And those data must be streamed -supplied- by somebody realtime. Nobody will provide you with realtime data from official exchanges without costs involved, at least to my understanding. Cheapest are IB. But there you could use API, that is much superior to DDE.

Free data and appliions that are supplied by so-called brokers (MT4...) are a different kind of animal. If you calculate properly, these transactions are a lot more expensive than actual brokers. And you might check for the Dealer plug-in.

My personal impression is, you try to walk too quickly. Why don't you begin with small quantities at OandA? Not only demo, but actual money, though only pennies. Might look like a long road - however its the fastets way to success: Generate your signals via any MT4-broker, however trade on Oanda.

Regards and all the best

crispiin
11-16-2021, 01:27 AM
Hello,

I tried DDE using AB, without success, because of my data recovery from finance.yahoo.com. Although the advice given above is very comprehensive, I need exact help.

Can you direct concerning the Specific place on finance.yahoo.com to connect the DDE? Or for that matter, any other Realtime Data Retrieval site?

The person who introduced me to AB, did not inform how to perform actual business from the realtime quotes, to save ordering out of your broker's platform. I have mentioned it below, why?

My keen curiosity has brought me to this forum just now. I have just signed in as member on forum. Wonder whether Direct Order Execution is possible from Meta Trader 4 and AmiBroker 5 or greater, through any Indian stock broker? I'm considering DayTrading, so the datafeed needs to be free of price. It's given by all brokers of NSE, BSE to their customers, but the program is proprietory and regular data feed from Yahoo etc. is not configurable together. I utilize Sharekhan, IndiaBulls, Ventura, RelianceMoney etc. for my realtime trading. But, none of their appliions is feature rich esp. For charting and super imposing the indiors on price bars to take immediate action on receiving the alerts.

AB's Alerts would play very significant/important part in decision procedure, Risk Management and may be Time Saving esp. For the Day Traders.

2. I have also run the demo version of MT4 and find it notable. I am not certain of this AutoTrading feature in AB, but MT4 have lots of Expert Advisors that help in every type of commerce setup. Programming and/or modifiion of the parameters are extremely easy and short of WOW! exclamation. It's always connected to the broker's server so the client does not have to pay for the program. When the company takes place, the broker is automatically compensated in the Spread/price gap.

3. Since this is the Forum of enlightened users, programmers and even persons connected with all the brokers, I shall thank for every piece of information/guie to get DOING ONLINE TRADING IN BOTH OF THESE TWO PLATFORMS.

Thanks.

Sharad Kapadia
Surat/India

Ahora
11-16-2021, 02:48 AM
I discover that AB is great, so it is a real pity that its User Manual is poor...

ina99
11-16-2021, 04:09 AM
You know that is sort of funny, since AB can take esignal as a data source... I use it with a dde feed in my broker and just down load a background so I have back data to utilize. This type of arrangement does not cost me anything and it's realtime and in sync with the broker I am using.

Scott

Thank you for the info Scott. And I like the fact that it's a one time fee. I cover $150 for eSignal right now per month.

xXpATmXx
11-16-2021, 05:30 AM
I've a replica of TS 2000i too. AmiBroker uses a language called AFL. It is very much like visual Fundamental Like you can use in Excel. I remember, TS uses Easy Language, and that's similar to C. Is that right?

I adore AB for backtesting and for drawing data and for composing purposes. Too bad it's not a platform for brokers the manner MT4 is... It is hands down better than MT4. And on par with TS, except TS has the platform for trading.

I can email you the user Manual if you prefer. It available publicly in their internet site. You can also obtain a trial copy free to see if you prefer it.

Scott Thanks for the info Scott. And I like the fact that it's a 1 time fee. I cover $150 for eSignal right now per month.

ina99
11-16-2021, 06:50 AM
I have a replica of TS 2000i as well. AmiBroker employs a language called AFL. It's quite much like visual Basic Like you can use in Excel. I remember, TS uses Easy Language, and that's similar to C. Is that correct?

I love AB for backtesting and for drawing in information and for writing purposes. Too bad it is not a platform for brokers the way MT4 is... It's hands down better than MT4. And on level with TS, except TS gets the platform for trading.

I will email you the user Manual if you like. It available publicly in their web website. You could also obtain a trial copy free to see if you like it.

Scott



I am an old TS user.

For you Amibroker users, what language is the code? Java? C? Scripting?

I have been wanting to test AB out for awhile today...

Has anyone used Tradestation and will do a comparison?

Thanks!

xXpATmXx
11-16-2021, 08:11 AM
I'm an older TS user.

For you Amibroker users, what language is the code? Java? C? Scripting?

I've been wanting to try AB outside for awhile today...

Has anybody used Tradestation and can do a comparison?

Thanks!

Oxnaju
11-16-2021, 09:32 AM
Hello, I begun using Amibroker. I basically mean to use it's portfolio level backtesting to test systems. However my problem is in setting up the preferences for backtesting especially for cross rate currencies. Can you guys show me what you did?

Thanks.

Jankius
11-16-2021, 10:53 AM
I've used AmiBroker for 5yrs wouldn't use anything else. Can not beleive that individuals would pay the price others are charging. The price differance is principally due to the amount the other software companies are spending on advertisment to tempt you into buying this product. If you find something which AmiBroker can't do, then you certainly haven't read the users guide. It's possible, using a DDE connection, tie it with MT. Haveing AB do the work and sending orders to MT to open/close the positions. And, if you have an account with an MT3 broker, there is an MT3 to AB API available for you to utilize. It pulls in information, permits you to execute transactions and queries on your own account.

If you want to have a peek at it visit the ForexSystemBuilders yahoo group. You'll find past messages from the developer as well as some testers.

Cheers,
Andrew.

ina99
11-16-2021, 12:13 PM
I own a life time renewal to AmiBroker. I have it set up on a DDE from my broker. . There is.

I use it for backtesting because of it's accuracy and functionality.
I also have Metastock 8 and ts2000i. Which are nice, but AMI B is easier to use.
I use MT4 for everyday charting, since it is free and integrated with brokers.
However, for me personally, AB is the Backtesting king.

Scott

adicpks.tv
11-16-2021, 01:34 PM
I only got a copy of AmBroker ver 4.70 for backtesting purposes but have not got it down however. Previously, I used MetaStock Professional ver 8. My objective is a more demanding user-interface with comparable or better results.

Any remarks regarding AmiBroker?

Thanks. I've used AmiBroker for 5yrs wouldn't use anything else. Can not beleive that individuals would pay the price that others are charging. The price differance is mainly due to the number the other software organizations are spending on advertisment to tempt you into buying this product. If you discover something which AmiBroker can't do, then you have not read the users guide. It's possible, using a DDE link, tie it together with MT. Haveing AB perform the work and sending orders to MT to open/close the rankings.