zemuss Posted July 23, 2021 Report Posted July 23, 2021 Simple logic: 3 Parameters 5 /8/ 13 basic code: If 5 > 8 & 8>13 then CALLS is the message. Code: CrossesUP has an index is this represented as a candle? I want the signal only after the close of the candle not before or not during the current candle which I believe is index 0? I couldn't find documentation on this topic in help. Thanks, Z Quote
Mike Medved Posted July 24, 2021 Report Posted July 24, 2021 Well if you're doing > that's not CrossesUp, that's just >. And yes, if you use index of 1 it will check the candle before the last one, so that way you will be checking after the close of the candle. Quote
zemuss Posted July 24, 2021 Author Report Posted July 24, 2021 Thats just pseudo code.. I am using the CrossesUp or Down property. Also is there an array or dictionary we can use to keep track of the cross? Write to excel or DB functions? Would love to have an API to interface with my strategy db. Quote
Mike Medved Posted July 24, 2021 Report Posted July 24, 2021 We have an API. It's a streaming websocket/JSON API, you connect to running MT and can get market data, trade, set up alerts, get notified when alerts fire, etc. https://docs.google.com/document/d/15IvYQEYzSeftTSEdVhsptAguM0fGm9mTJFSDDAK7zWE ... which reminds me I gotta finish prettying the doc up. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.