Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Study Range Threshold Prev Session //
- // Vedi Anche Versione Indicatore Range Threshold Prev Session //
- // ===============================================================
- // Study Range Threshold Prev Session
- // Versione Unificata con Input LONG e SHORT Separati
- // ===============================================================
- // ==================== INPUT ======================
- Inputs:
- dollarThrehold_Long(200), // soglia in DOLLARI per LONG
- dollarThrehold_Short(200), // soglia in DOLLARI per SHORT
- BPV(50), // Inserisci il big point value ES: @S = 50$ / Big Point Value per Long Per Crypto 1$
- Only_Long(false), // mostra SOLO logica Long
- Only_Short(false); // mostra SOLO logica Short
- // ==================== VARIABILI ===================
- Vars:
- highPrevSession(0),
- lowPrevSession(0),
- priceThreholdLong(0),
- priceThreholdShort(0),
- sogliaPrezzoLong(0),
- sogliaPrezzoShort(0);
- // ===============================================================
- // ========================= LOGICA LONG =========================
- // ===============================================================
- if not Only_Short then
- begin
- // soglia in punti (conversione da dollari a punti)
- priceThreholdLong = dollarThrehold_Long / BPV;
- // massimo sessione precedente
- highPrevSession = HighSession(1,1);
- // soglia sopra il massimo
- sogliaPrezzoLong = highPrevSession + priceThreholdLong;
- // =================== PLOT LONG ======================
- Plot1(highPrevSession, "HighPrevSess_L");
- Plot2(sogliaPrezzoLong, "Soglia+$");
- Plot3(HighSession(1,0), "HighSessCorr_L");
- // colori
- SetPlotColor(1, Blue); // max sessione precedente
- SetPlotColor(2, Red); // soglia max + $
- SetPlotColor(3, Green); // max sessione corrente
- SetPlotWidth(1, 1);
- SetPlotWidth(2, 2);
- SetPlotWidth(3, 2);
- end;
- // ===============================================================
- // ========================= LOGICA SHORT ========================
- // ===============================================================
- if not Only_Long then
- begin
- // soglia in punti (conversione dollari → punti)
- priceThreholdShort = dollarThrehold_Short / BPV;
- // minimo sessione precedente
- lowPrevSession = LowSession(1,1);
- // soglia sotto il minimo
- sogliaPrezzoShort = lowPrevSession - priceThreholdShort;
- // =================== PLOT SHORT ======================
- Plot4(lowPrevSession, "LowPrevSess_S");
- Plot5(sogliaPrezzoShort, "Soglia-$");
- Plot6(LowSession(1,0), "LowSessCorr_S");
- // colori
- SetPlotColor(4, Blue); // min sessione precedente
- SetPlotColor(5, Red); // soglia min - $
- SetPlotColor(6, Green); // min sessione corrente
- SetPlotWidth(4, 1);
- SetPlotWidth(5, 2);
- SetPlotWidth(6, 2);
- end;
Advertisement
Add Comment
Please, Sign In to add comment