Created
November 16, 2018 18:40
-
-
Save sakex/8d13fc2d4ef6ac8188149b5dbc7c2598 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const B1 = account.GBP * EURGBP * USDEUR; | |
const B2 = account.GBP * GBPUSD; | |
if (B1 - B2 > 100) { | |
buy('USDGBP', account.GBP - 1000); | |
buy('EURUSD', account.USD - 1000); | |
buy('GPBEUR', account.EUR - 1000); | |
} | |
if (B2 - B1 < -100) { | |
buy('EURGBP', account.GBP - 1000); | |
buy('USDEUR', account.EUR - 1000); | |
buy('GBPUSD', account.USD - 1000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment