Function to find common high or low prices for a number of candles

Function to find common high or low prices for a number of candles

Manage alerts

Loading saved threads...

John Kironyo · External communityPost link
External question — Stack Overflow Stack Exchange Author: John Kironyo Original post: https://stackoverflow.com/questions/70517287 License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/ Adaptation: HTML converted to plain text; contact email addresses removed. Normally we use the function (iHigh) or (iLow) to find the highest or lowest price of a certain candle. My question is, is there a way or function i can use to find a common price shared by a number of candles..lets say 10 previous candles...and use the returned values to draw a line of support or resistance
Quote
Report
PaulB · External communityPost link
External answer — Stack Overflow Stack Exchange Author: PaulB Original post: https://stackoverflow.com/a/70548547 License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/ Adaptation: HTML converted to plain text; contact email addresses removed. You can find the highest high or the lowest low of a series of candles using iHighest() and iLowest() . An example would be: int index=iHighest(NULL,0,MODE_HIGH,20,4); double highest=iHigh(NULL,0,index); This example would find the highest high of the candles from bar 4 to 23.
Quote
Report

Post Reply

Quoted from Forex.com.bd-Editorial External answer — Stack Overflow Stack Exchange Author: PaulB Source score (net votes, not local likes): 0 Original post: https://stackoverflow.com/a/70548547 License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/ Adaptation: HTML converted to plain text; contact email addresses removed. You can find the highest high or the lowest low of a series of candles using iHighest() and iLowest() . An example would be: int index=iHighest(NULL,0,MODE_HIGH,20,4); double highest=iHigh(NULL,0,index); This example would find the highest high of the candles from bar 4 to 23.

Cancel quote

Checking account access…