var ma = TA.MA(records, 15,'high')
Log(ma)
ma = TA.MA(records, 15)
Log(ma)
Why are these two MA returns the same? Shouldn't the first be the average of the highest price and the second the average of the closing price?
lzhqljSo what should I do to get the highest moving average?
lzhqljSo what should I do to get the highest moving average?
ohduringThe result is the same.
lzhqljThank you.
Inventors quantify - small dreamsWe can go through records and reconstruct an array with a high price.
lzhqljVar records = exchange.GetRecords ((PERIOD_H1)) is a file format used to store data. What do you mean? Log ((" The first k-string data is, Time:", records[0].Time, "Open:", records[0].Open, "High:", records[0].High Log (((The second root of the k-string data is, Time:", records[1].Time, "Close:", records[1].Close Log (("current K line ((latest)", records[records.length-1], "last K line", records[records.length-2]) I've been trying to find a way to get my records to be as good as possible.
allez-zYou can change the records yourself, put the high in the close position
lzhqljSo what should I do to get the highest moving average?