Disliked{quote} {quote} The op, go to his profile and check his activity on this thread. {quote} Instead of haphazardly chopping code up, a simpler and quicker way is to just use icustom and get the value of the buffers you want at the candle you want. Off the cuff pseudocode, untested. Idea is to have a single function to ask for signal from, get indicator values, do some condition on them and return a result. int signal_check() {//0=no signal, 1=buy, -1=sell int result = 0;//start off with 0 string iname = "";//indicator name string sym = "";//symbol...Ignored

- Post #49,186
- Quote
- Oct 17, 2021 9:54am Oct 17, 2021 9:54am
- Joined Dec 2010 | Status: Member | 1,760 Posts
- Post #49,187
- Quote
- Oct 17, 2021 9:55am Oct 17, 2021 9:55am
- Joined Dec 2010 | Status: Member | 1,760 Posts
- Post #49,188
- Quote
- Edited 4:37pm Oct 17, 2021 10:11am | Edited 4:37pm
- | Joined Dec 2020 | Status: Exit | 304 Posts
- Post #49,199
- Quote
- Edited 6:50am Oct 18, 2021 6:37am | Edited 6:50am
- Joined Nov 2018 | Status: Member | 1,051 Posts
- Post #49,200
- Quote
- Oct 18, 2021 9:41am Oct 18, 2021 9:41am
- | Joined Dec 2020 | Status: Exit | 304 Posts