Support Board
Date/Time: Sat, 23 Nov 2024 09:17:56 +0000
Post From: Displaying an image on a trading chart
[2021-11-30 05:32:42] |
Tony - Posts: 516 |
Thanks User422070. Of cause there is a way, I always feel that with ACSIL, the only limit is our imagination. There are few steps, 1st you need to find out the exact symbol string by using sc.Symbol variable, i.e. 'NFLX' 'CMG' etc, save each text image to file like NFLX.txt, CMG.txt, then inside 'if (!sc.Index)' block, load a text file according the symbol on the chart, you are done. if (!sc.Index) {} is only executed once, but each time you change the symbol on a chart, the study will be re-loaded, meaning, if (!sc.Index) {} will be executed again, so, it feels like logo is "automatically" changed every time you change the symbol, although no coding is involved. It is easier to change the study in post #17 as a function (above all study functions). If you are not into coding, there is a quick dirty way by changing 3rd line in post #17: SCSFExport scsf_ASCII_Art(SCStudyInterfaceRef canvas) to SCSFExport scsf_NFLX(SCStudyInterfaceRef canvas), also: canvas.GraphName = "ASCII Art"; to canvas.GraphName = "NFLX"; Copy and paste from 3rd to end and change study and graph names for another stocks now you have multiple studies in TextToImage.dll, then you can pick one of them along with other studies you use for every chart, save them as a study collection: i.e. NFLX.StdyCollct. user8888, not sure what you are trying to achieve, I would like to imagine that background would have negative impact to your judgment. If you just want some horizontal colour stripes based on price levels, then you need 2 subgraphs for each stripe, set each one of those 2 subgraphs to whatever value you need, and one as Fill Top, the other as Fill Bottom (see attachment) for (int IndexCount = sc.IndexOfLastVisibleBar; IndexCount >= sc.IndexOfFirstVisibleBar; IndexCount--) { SubgraphTop[IndexCount] = MyLevel_1; SubgraphBottom[IndexCount] = MyLevel_2; } Hope that would help. Date Time Of Last Edit: 2022-01-28 19:01:07
|
Stripe.png / V - Attached On 2021-11-30 05:30:09 UTC - Size: 19.14 KB - 316 views |