Support Board
Date/Time: Sat, 05 Jul 2025 13:35:58 +0000
Post From: trading system based on 2 signals
[2021-03-10 07:49:33] |
User61576 - Posts: 450 |
I have 1 study code that generates a signal on chart I have another study code that also generates a signal on chart only if both (in the same bar) are marked on chart (so we have 2 signals together) - I would like to send an order this part will call the studies I already have and get the signal from the chart (this is from the exmpale above) SCFloatArray StudyLine1;
sc.GetStudyArrayUsingID(Input_Line1Ref.GetStudyID(), Input_Line1Ref.GetSubgraphIndex(), StudyLine1); SCFloatArray StudyLine2; sc.GetStudyArrayUsingID(Input_Line2Ref.GetStudyID(), Input_Line2Ref.GetSubgraphIndex(), StudyLine2); the trigger for entry will be (from the example): if (sc.CrossOver(StudyLine1, StudyLine2) == CROSS_FROM_BOTTOM)
and this is what I am trying to find, how to compare StudyLine1, StudyLine2 that they are both "true" (so I have a signal on both of them) and I could not find anything ACSIL Interface Members - Functions thanks for helping out! |