Hello I am new to Lua language. Can anyone help me develop a strategy for pairs trading? Currently I have developed indicators for pairs trading. But I don't know how to write codes that can trade two different commodities. My opinion is that when pairs trading signals exceed upper line, then sell commodities with relatively high price while buy commodities with relatively low price automatically.But how to achieve that in code? Attachment is indicator for pairs trading for your reference.
- as4.lua
- indicator for pairs trading
- (11.05 KiB) Downloaded 681 times