Hi all.
I am new here, so, please, go easy. When I first bought Amibroker, I just understood that it could do pretty much everything I needed it to do, but I had no idea how. I'm also not a software engineer. I can code a little bit of TradingView native PineScript language and I'm learning python, but in all honestly, I'm learning by doing.
Anyway, one of the reasons I bought Amibroker was to improve the motivational side of my trading psychology and generate some EOD signals which I would then manually trade, and also some small position intraday forex or crypto scalp trades and I imagined that I could just plug in amibroker to the back end of my broker and away to go.
I'm a few weeks in to learning amibroker and it seems that it is not a case of pluging amibroker into the back end of my broker.
So I'm trying to identify a solution.
Is there a marketplace where people have developed plug-ins for any broker that you might imagine?
If not, I am wondering how other people use Amibroker (outside of backtesting, scanning and exploration)?
The solution I am currently imagining is, code up a bot in Python (once I have learned how to do that), and then use arrays to get buy and sell prices from my strategy, and into the bot I have written.
So, for example;
//https://www.amibroker.com/guide/h_alerts.html
buysig = C >= 1200;
msg = "With any luck, you should have also opened firefox. This kind of combination of having 2 alertif conditions , one for opening an application and one for sending an email, is how you would set up an autotrading and alert system.";
website = "www.barchart.com";
Buy = buysig;
AlertIf(Buy,"EMAIL",msg, 1,1,1);
AlertIf(Buy,"EXEC firefox.exe",website, 1,1,1);
I would use the AlertIf condition, but on line 4 above, where I have set the array is website= "www.barchart.com" where barchart is a string, I might instead have website = float, where the float is a value I have derived elsewhere.
Also, if I am trying to attach bracket orders, I might want to have more than 1 float value. So, is there some kind of sequence in which to 'displayText', or would I have to write 1 bot for my buy order price and another for the stops, another to specify what type of order I want etc, so something like this....
OrderType = "limit"
OrderPrice = C - 0.5*ATR(14)
StopPrice = OrderPrice*0.98
Target = OrderPrice*1.04
AlertIf(Buy,"EXEC limitbot.exe",OrderType, 1,1,1);//Where limitbot.exe is a small application I have written in Python or another language to tell my broker what type of order I want
AlertIf(Buy,"EXEC tradeopenpricebot.exe",OrderPrice, 1,1,1);
AlertIf(Buy,"EXEC stoplossbot.exe",StopPrice, 1,1,1);
AlertIf(Buy,"EXEC targetbot.exe",Target, 1,1,1);
Am I going about this the right way, or am I trying to reinvent the wheel?
Thanks
Spandy