Hallo Peter,
Yes, that's correct ( same info available in LibSSSRv2 and in the SS_SupportResistance_v04c indi itself )
PS: in the LibSSSR zip files on post #1, there's an Instructions.txt and sample EA showing usage. The bit about checking whether price is inside the zone is how I've tested it, and it works flawlessly
PS2: I edited the code in my post!, forgot a crucial element, supposed to be as below
Cheers!
Code: Select all
// find the support & resistance zones closest to price; ignore weak zones (false)
res_zone = SSSR_FindZoneV2(SSSR_UP, false, Ask, res_hi, res_lo, res_strength);
sup_zone = SSSR_FindZoneV2(SSSR_DN, false, Bid, sup_hi, sup_lo, sup_strength);
if ( (res_zone >= 0) && (res_strength > 2) && ( Bid >= res_lo ) && ( Bid < res_hi ) )
{
// Price is within a VERIFIED or PROVEN resistance zone; do something
..
}
if ( (sup_zone >= 0) && (sup_strength > 2) && ( Ask <= sup_hi ) && ( Ask > sup_lo ) )
{
// Price is within a VERIFIED or PROVEN support zone; do something
..
}