For various reasons, you may like to run multiple instances of APIBridge on same computer. Where In addition each instance gives you full power with different logins. For Instance, you may like to trade at same -time in 5 family accounts. However this can be easily done via multi-instance.
Therefore before proceeding, make sure you are already familiar with APIBridge platform. If you wish to know more about APIBridge you can check out this link.
Only one instance can be connected to TradingView currently. Other platforms allow connecting with multiple instance at the same time.
Step 1: First create a multi-instance setup as shown in video below. Ignore the Admin part.
Step 2: For each setup, use a different port. Then go to Application Settings -> Signal settings and change Default TCP port in different instance like 30001, 30002, 30003 etc. Do NOT change the port of the instance you want to use with TradingView.
Step 3: In the AFL, look for Algoji_Signal(). Here, replace stag by stag+”|30001″ etc. Make multiple lines of Algoji_Signal() as per the required instances.
Original:
AlgoJi_Signal(NumToStr(Nz(StaticVarGet("counter")),0,False), "SX",sym,"MARKET","",bp,qty,instr,stag);
After Edit:
AlgoJi_Signal(NumToStr(Nz(StaticVarGet("counter")),0,False),"SX",sym,"MARKET","",bp,qty,instr,stag+"|30001"); AlgoJi_Signal(NumToStr(Nz(StaticVarGet("counter")),0,False),"SX",sym,"MARKET","",bp,qty,instr,stag+"|30002);
RELATED: Can I trade from TradingView and Amibroker at same time? Multi-platform support?
You can also watch the below video to know more about multi-instance
Is there a multi client solution for MT4 as well?