Support Board
Date/Time: Fri, 07 Feb 2025 08:55:27 +0000
Post From: sc.BaseData[SC_ASK_PRICE] instead of sc.BaseData[SC_LAST]?
[2020-05-26 15:31:40] |
clspxes1 - Posts: 4 |
ACSIL is powerful. Just have a quick question that I will pose through a scenario. In the example we have if (sc.CrossOver(sc.Close, SimpMovAvg) == CROSS_FROM_BOTTOM) What if someone wanted the Bid Price rather than the closing price of a bar? i.e. I've tried: float BidPrice = sc.BaseData[SC_BID_PRICE][sc.Index] -------------------------------------------------- float BidPrice = sc.BaseData[SC_BID_PRICE][0] --------------------------------------------------- float BidPrice; BidPrice = sc.SymbolData->BidDOM[0].Price; (this is from a user contributed study example (did not work either)) --------------------------------------------------- EDIT: Of course, followed by placing the bid/BidPrice into the if statement; sc.Crossover(BidPrice, SimpMovAvg) EDIT2: The title of the thread says SC_ASK_PRICE but I meant SC_BID_PRICE So, in short, I'm looking to change the logic from: if (sc.CrossOver(sc.Close, SimpMovAvg) == CROSS_FROM_BOTTOM) to if (sc.CrossOver(BidPrice, SimpMovAvg) == CROSS_FROM_BOTTOM) If you could explain it I'd really appreciate it. If you'd like me to pay for phone support instead just let me know. Date Time Of Last Edit: 2020-05-26 15:40:58
|