Initial Commit ...
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
// //
|
||||
// // Long Signal ...
|
||||
// if (
|
||||
// //
|
||||
// hasLongSignal &&
|
||||
// //
|
||||
// price <xmaLow &&
|
||||
// cLow < xmaLow &&
|
||||
// cHigh < xmaLow &&
|
||||
// price < xmaBigHigh &&
|
||||
// tp > xmaBigHigh &&
|
||||
// tp > xmaHigh
|
||||
// ) {
|
||||
// tp = MathMin(xmaHigh, xmaBigHigh);
|
||||
// } else
|
||||
// //
|
||||
// // Short Signal ...
|
||||
// // TODO: Change ...
|
||||
// if (
|
||||
// //
|
||||
// hasShortSignal &&
|
||||
// //
|
||||
// price < xmaHigh &&
|
||||
// price < xmaBigHigh &&
|
||||
// price > xmaLow &&
|
||||
// //
|
||||
// tp < xmaLow
|
||||
// ) {
|
||||
// tp = xmaLow;
|
||||
// }
|
||||
@@ -0,0 +1,38 @@
|
||||
## Strategy Title
|
||||
|
||||
### Setup
|
||||
|
||||
- **TF**:
|
||||
- **Asset**:
|
||||
- **R2R**: 1:1.5
|
||||
- **Indicators**:
|
||||
--
|
||||
--
|
||||
- **Oscillators**:
|
||||
--
|
||||
|
||||
### Using the Strategy
|
||||
|
||||
#### Long/Buy Conditions
|
||||
|
||||
- ;
|
||||
|
||||
##### Long SL
|
||||
|
||||
place sl below of previous market.
|
||||
|
||||
##### Long TP
|
||||
|
||||
calculate based on R2R;
|
||||
|
||||
#### Short/Sell Conditions
|
||||
|
||||
- ;
|
||||
|
||||
##### Short SL
|
||||
|
||||
place sl below of previous market.
|
||||
|
||||
##### Short TP
|
||||
|
||||
calculate based on R2R;
|
||||
@@ -0,0 +1,96 @@
|
||||
# XST_???
|
||||
|
||||
## Report
|
||||
|
||||
### Makret
|
||||
|
||||
???
|
||||
|
||||
### Exchange
|
||||
|
||||
???
|
||||
|
||||
### Time Frame
|
||||
|
||||
???min
|
||||
|
||||
### Start Date
|
||||
|
||||
14 may 2023 | 07:25 UTC
|
||||
|
||||
### End Date
|
||||
|
||||
22 may 2023 | 08:55 UTC
|
||||
|
||||
### Risk to Reward
|
||||
|
||||
1:1.5
|
||||
|
||||
### Reports
|
||||
|
||||
#### Longs
|
||||
|
||||
| ID | Position Type | TP | SL | Description |
|
||||
| :--: | :-----------: | :--: | :--: | :---------- |
|
||||
| 1 | Long | | | |
|
||||
| 2 | Long | | | |
|
||||
| 3 | Long | | | |
|
||||
| 4 | Long | | | |
|
||||
| 5 | Long | | | |
|
||||
| 6 | Long | | | |
|
||||
| 7 | Long | | | |
|
||||
| 8 | Long | | | |
|
||||
| 9 | Long | | | |
|
||||
| 10 | Long | | | |
|
||||
| 11 | Long | | | |
|
||||
| 12 | Long | | | |
|
||||
| 13 | Long | | | |
|
||||
| 14 | Long | | | |
|
||||
| 15 | Long | | | |
|
||||
| 16 | Long | | | |
|
||||
| 17 | Long | | | |
|
||||
| 18 | Long | | | |
|
||||
| 19 | Long | | | |
|
||||
| 20 | Long | | | |
|
||||
|
||||
#### Shorts
|
||||
|
||||
| ID | Position Type | TP | SL | Description |
|
||||
| :--: | :-----------: | :--: | :--: | :---------- |
|
||||
| 1 | Short | | | |
|
||||
| 2 | Short | | | |
|
||||
| 3 | Short | | | |
|
||||
| 4 | Short | | | |
|
||||
| 5 | Short | | | |
|
||||
| 6 | Short | | | |
|
||||
| 7 | Short | | | |
|
||||
| 8 | Short | | | |
|
||||
| 9 | Short | | | |
|
||||
| 10 | Short | | | |
|
||||
| 11 | Short | | | |
|
||||
| 12 | Short | | | |
|
||||
| 13 | Short | | | |
|
||||
| 14 | Short | | | |
|
||||
| 15 | Short | | | |
|
||||
| 16 | Short | | | |
|
||||
| 17 | Short | | | |
|
||||
| 18 | Short | | | |
|
||||
| 19 | Short | | | |
|
||||
| 20 | Short | | | |
|
||||
|
||||
#### Signals Results
|
||||
|
||||
| Type | Count | TPs | SLs |
|
||||
| :----: | :-: | :-: | :-: |
|
||||
| Longs | 00 | 00 | 00 |
|
||||
| Shorts | 00 | 00 | 00 |
|
||||
| Total | 00 | 00 | 00 |
|
||||
|
||||
#### Analysis
|
||||
|
||||
per trade volume: 10$
|
||||
total drawdown: 200$
|
||||
total lose: $
|
||||
total reward: $
|
||||
total cash: $
|
||||
win rate: %
|
||||
@@ -0,0 +1,16 @@
|
||||
# ????
|
||||
|
||||
## Makret
|
||||
|
||||
## Exchange
|
||||
|
||||
## Time Frame
|
||||
|
||||
## Start Date
|
||||
|
||||
## End Date
|
||||
|
||||
## Reports
|
||||
|
||||
| ID | Position Type | TP | SL | Description |
|
||||
| -- | ------------- | -- | -- | ----------- |
|
||||
@@ -0,0 +1,39 @@
|
||||
|
||||
//
|
||||
// Check if a Candle is Bullish based on CRT Indicator ...
|
||||
bool isBullishCRT(X_CANDLE_TYPE type) {
|
||||
//
|
||||
switch(type) {
|
||||
//
|
||||
case X_CT_HAMMER:
|
||||
case X_CT_BULLISH_BELT:
|
||||
case X_CT_MORNING_STAR:
|
||||
case X_CT_BULLISH_KICKER:
|
||||
case X_CT_BULLISH_HARAMI:
|
||||
case X_CT_INVERTED_HAMMER:
|
||||
case X_CT_BULLISH_ENGULFING:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Check if a Candle is Bearish based on CRT Indicator ...
|
||||
bool isBearishCRT(X_CANDLE_TYPE type) {
|
||||
//
|
||||
switch(type) {
|
||||
//
|
||||
case X_CT_PRICE_LINE:
|
||||
case X_CT_HANGING_MAN:
|
||||
case X_CT_EVENING_STAR:
|
||||
case X_CT_SHOOTING_STAR:
|
||||
case X_CT_BEARISH_HARAMI:
|
||||
case X_CT_BEARISH_KICKER:
|
||||
case X_CT_DARK_CLOUD_COVER:
|
||||
case X_CT_BEARISH_ENGULFING:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
///////////////////////////////////////////////////////
|
||||
//
|
||||
// SaherElm IT Center ??? Strategy Expert Advisor
|
||||
// ---------------------------------------------
|
||||
// saherelm implementation of strategy expert advisor ...
|
||||
//
|
||||
// ShortName: ???
|
||||
//
|
||||
// Maintainer:
|
||||
// ------------
|
||||
// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com)
|
||||
//
|
||||
//////////////////////////////////////////////////////
|
||||
//
|
||||
// Global Properties ...
|
||||
#property copyright "Copyright 2023, SaherElm IT Center"
|
||||
#property link "https://saherelm.ir"
|
||||
#property version "1.00"
|
||||
#property description "SaherElm ??? Strategy Expert Advisor"
|
||||
#property strict
|
||||
|
||||
//
|
||||
// START Inputs ...
|
||||
//
|
||||
//
|
||||
// END Inputs ...
|
||||
//
|
||||
|
||||
//
|
||||
// START Global Definitions: Variables, Properties and etc ...
|
||||
//
|
||||
//
|
||||
// END Global Definitions: Variables, Properties and etc ...
|
||||
//
|
||||
|
||||
//
|
||||
// Start Event Handlers ...
|
||||
//
|
||||
//
|
||||
// Ticker Event Handler ...
|
||||
void OnTick()
|
||||
{
|
||||
}
|
||||
//
|
||||
// END Event Handlers ...
|
||||
//
|
||||
|
||||
//
|
||||
// START Functions ...
|
||||
//
|
||||
//
|
||||
// END Functions ...
|
||||
//
|
||||
@@ -0,0 +1,104 @@
|
||||
///////////////////////////////////////////////////////
|
||||
//
|
||||
// SaherElm IT Center ??? Indicator
|
||||
// ---------------------------------------------
|
||||
// saherelm implementation of above indicator ...
|
||||
//
|
||||
// Maintainer:
|
||||
// ------------
|
||||
// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com)
|
||||
//
|
||||
//////////////////////////////////////////////////////
|
||||
//
|
||||
// Global Properties ...
|
||||
#property copyright "Copyright 2023, SaherElm IT Center"
|
||||
#property link "https://saherelm.ir"
|
||||
#property version "1.00"
|
||||
#property description "SaherElm ??? Indicator"
|
||||
#property strict
|
||||
|
||||
//
|
||||
// START Inputs ...
|
||||
//
|
||||
//
|
||||
// END Inputs ...
|
||||
//
|
||||
|
||||
//
|
||||
// START Global Definitions: Variables, Properties and etc ...
|
||||
//
|
||||
#property indicator_chart_window
|
||||
//
|
||||
// END Global Definitions: Variables, Properties and etc ...
|
||||
//
|
||||
|
||||
//
|
||||
// Start Event Handlers ...
|
||||
//
|
||||
//
|
||||
// Initialization ...
|
||||
int OnInit() {
|
||||
//
|
||||
// Initialize what we want ...
|
||||
|
||||
//
|
||||
return(INIT_SUCCEEDED);
|
||||
}
|
||||
|
||||
//
|
||||
// Calculating what we want ...
|
||||
int OnCalculate(const int rates_total,
|
||||
const int prev_calculated,
|
||||
const datetime &time[],
|
||||
const double &open[],
|
||||
const double &high[],
|
||||
const double &low[],
|
||||
const double &close[],
|
||||
const long &tick_volume[],
|
||||
const long &volume[],
|
||||
const int &spread[]
|
||||
) {
|
||||
//
|
||||
// this counts Available Bars ...
|
||||
int limit;
|
||||
|
||||
//
|
||||
// because in some cases we may have more than one input for
|
||||
// calculation and we must prevent any calculation
|
||||
// untill we pass the biggest input length, here we get max Input length
|
||||
// and then wait until pass it ...
|
||||
int maxLength = MathMax(0, 0);
|
||||
|
||||
//
|
||||
// input variable, we return 0 means nothing passed ...
|
||||
if (rates_total < maxLength) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
//
|
||||
// found which candles calculated before ...
|
||||
limit = (prev_calculated == 0) ? rates_total - maxLength - 1 : rates_total - prev_calculated + 1;
|
||||
|
||||
//
|
||||
// this is the main loop of calculations, for each bar index ...
|
||||
for (int i = limit - 1; i >= 0; i--) {
|
||||
//
|
||||
// Start Calculation here ...
|
||||
// i is bar_index ...
|
||||
|
||||
//
|
||||
}
|
||||
|
||||
//
|
||||
return rates_total;
|
||||
}
|
||||
//
|
||||
// END Event Handlers ...
|
||||
//
|
||||
|
||||
//
|
||||
// START Functions ...
|
||||
//
|
||||
//
|
||||
// END Functions ...
|
||||
//
|
||||
@@ -0,0 +1,25 @@
|
||||
///////////////////////////////////////////////////////
|
||||
//
|
||||
// SaherElm IT Center Library
|
||||
// ---------------------------------------------
|
||||
// saherelm implementation of strategy expert advisor ...
|
||||
//
|
||||
// ShortName: ???
|
||||
//
|
||||
// Maintainer:
|
||||
// ------------
|
||||
// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com)
|
||||
//
|
||||
//////////////////////////////////////////////////////
|
||||
#property library
|
||||
#property copyright "Copyright 2023, SaherElm IT Center"
|
||||
#property link "https://www.saherelm.ir"
|
||||
#property version "1.00"
|
||||
#property strict
|
||||
|
||||
//
|
||||
// START Functions ...
|
||||
//
|
||||
//
|
||||
// END Functions ...
|
||||
//
|
||||
@@ -0,0 +1,56 @@
|
||||
///////////////////////////////////////////////////////
|
||||
//
|
||||
// SaherElm IT Center ??? Oscillator
|
||||
// ---------------------------------------------
|
||||
// saherelm implementation of above oscillator ...
|
||||
//
|
||||
// Maintainer:
|
||||
// ------------
|
||||
// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com)
|
||||
//
|
||||
//////////////////////////////////////////////////////
|
||||
//
|
||||
// Global Properties ...
|
||||
#property copyright "Copyright 2023, SaherElm IT Center"
|
||||
#property link "https://saherelm.ir"
|
||||
#property version "1.00"
|
||||
#property description "SaherElm ??? Oscillator"
|
||||
#property strict
|
||||
|
||||
//
|
||||
// START Inputs ...
|
||||
//
|
||||
//
|
||||
// END Inputs ...
|
||||
//
|
||||
|
||||
//
|
||||
// START Global Definitions: Variables, Properties and etc ...
|
||||
//
|
||||
#property indicator_separate_window
|
||||
//
|
||||
// END Global Definitions: Variables, Properties and etc ...
|
||||
//
|
||||
|
||||
//
|
||||
// Start Event Handlers ...
|
||||
//
|
||||
//
|
||||
// Initialization ...
|
||||
int OnInit() {
|
||||
//
|
||||
// Initialize what we want ...
|
||||
|
||||
//
|
||||
return(INIT_SUCCEEDED);
|
||||
}
|
||||
//
|
||||
// END Event Handlers ...
|
||||
//
|
||||
|
||||
//
|
||||
// START Functions ...
|
||||
//
|
||||
//
|
||||
// END Functions ...
|
||||
//
|
||||
@@ -0,0 +1,57 @@
|
||||
///////////////////////////////////////////////////////
|
||||
//
|
||||
// SaherElm IT Center ??? Indicator
|
||||
// ---------------------------------------------
|
||||
// saherelm implementation of above indicator ...
|
||||
//
|
||||
// Maintainer:
|
||||
// ------------
|
||||
// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com)
|
||||
//
|
||||
//////////////////////////////////////////////////////
|
||||
|
||||
//
|
||||
//@version=5
|
||||
indicator(title="SaherElm ??? Indicator", shorttitle = "XS_??_IND", overlay = true)
|
||||
|
||||
//
|
||||
// START Inputs ....
|
||||
//
|
||||
//
|
||||
// END Inputs ....
|
||||
//
|
||||
|
||||
//
|
||||
// START Functions ....
|
||||
//
|
||||
//
|
||||
// END Functions ....
|
||||
//
|
||||
|
||||
//
|
||||
// START Calculations ....
|
||||
//
|
||||
//
|
||||
// END Calculations ....
|
||||
//
|
||||
|
||||
//
|
||||
// START Plots ....
|
||||
//
|
||||
plot(close)
|
||||
//
|
||||
// END Plots ....
|
||||
//
|
||||
|
||||
//
|
||||
// START Alerts ...
|
||||
//
|
||||
//
|
||||
// END Alerts ...
|
||||
//
|
||||
|
||||
//////////////////////////////////////////////////////
|
||||
// TODOS:
|
||||
// -------
|
||||
// - []
|
||||
//////////////////////////////////////////////////////
|
||||
@@ -0,0 +1,57 @@
|
||||
///////////////////////////////////////////////////////
|
||||
//
|
||||
// SaherElm IT Center ??? Oscillator
|
||||
// ---------------------------------------------
|
||||
// saherelm implementation of above oscillator ...
|
||||
//
|
||||
// Maintainer:
|
||||
// ------------
|
||||
// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com)
|
||||
//
|
||||
//////////////////////////////////////////////////////
|
||||
|
||||
//
|
||||
//@version=5
|
||||
indicator(title="SaherElm ??? Oscillator", shorttitle = "XS_??_OSC", overlay = false)
|
||||
|
||||
//
|
||||
// START Inputs ....
|
||||
//
|
||||
//
|
||||
// END Inputs ....
|
||||
//
|
||||
|
||||
//
|
||||
// START Functions ....
|
||||
//
|
||||
//
|
||||
// END Functions ....
|
||||
//
|
||||
|
||||
//
|
||||
// START Calculations ....
|
||||
//
|
||||
//
|
||||
// END Calculations ....
|
||||
//
|
||||
|
||||
//
|
||||
// START Plots ....
|
||||
//
|
||||
plot(close)
|
||||
//
|
||||
// END Plots ....
|
||||
//
|
||||
|
||||
//
|
||||
// START Alerts ...
|
||||
//
|
||||
//
|
||||
// END Alerts ...
|
||||
//
|
||||
|
||||
//////////////////////////////////////////////////////
|
||||
// TODOS:
|
||||
// -------
|
||||
// - []
|
||||
//////////////////////////////////////////////////////
|
||||
@@ -0,0 +1,195 @@
|
||||
///////////////////////////////////////////////////////
|
||||
//
|
||||
// SaherElm IT Center XTrade ??? Strategy
|
||||
// ---------------------------------------------
|
||||
// in this strategy i must use:
|
||||
// - ;
|
||||
//
|
||||
// Maintainer:
|
||||
// ------------
|
||||
// Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com)
|
||||
//
|
||||
//////////////////////////////////////////////////////
|
||||
|
||||
//
|
||||
//@version=5
|
||||
indicator(title="SaherElm XTrade ??? Strategy", shorttitle = "XST_???", overlay = true)
|
||||
|
||||
//
|
||||
// START Inputs ....
|
||||
//
|
||||
//
|
||||
// Determines Show Signals or not ...
|
||||
showSignals = input.bool(defval = true, title = "Show Signals", group = "Strategy")
|
||||
showStopLosses = input.bool(defval = true, title = "Show Stop Losses", group = "Strategy")
|
||||
|
||||
//
|
||||
// Show Signals based on their types ...
|
||||
showLongSignals = input.bool(defval = true, title = "Show Long Signals", group = "Signals")
|
||||
showShortSignals = input.bool(defval = true, title = "Show Short Signals", group = "Signals")
|
||||
|
||||
//
|
||||
// Show Stop Losses based on their types ...
|
||||
swingLoopback = input.int(defval = 7, title = "Swing Loopback Period", group = "Stop Loss")
|
||||
showLongStopLosses = input.bool(defval = true, title = "Show Long Stop Losses", group = "Stop Loss")
|
||||
showShortStopLosses = input.bool(defval = true, title = "Show Short Stop Losses", group = "Stop Loss")
|
||||
//
|
||||
// END Inputs ....
|
||||
//
|
||||
|
||||
//
|
||||
// START Functions ....
|
||||
//
|
||||
//////////////////////////////
|
||||
// START Price Action Candles
|
||||
//////////////////////////////
|
||||
//
|
||||
// Retrieve Specific Candle Height (based on low and high) ...
|
||||
getCandleRange() =>
|
||||
high - low
|
||||
|
||||
//
|
||||
// Retrieve Candle Ranges Thirs Section ...
|
||||
getCandleThird() =>
|
||||
getCandleRange() / 3
|
||||
|
||||
//
|
||||
// Determines a Candle is Bullish or not ...
|
||||
isBullishCandle() =>
|
||||
close > low + (getCandleThird() * 2)
|
||||
|
||||
//
|
||||
// Determines a Candle is Bearish or not ...
|
||||
isNeutralCandle() =>
|
||||
close < low + (getCandleThird() * 2) and close > low + getCandleThird()
|
||||
|
||||
//
|
||||
// Determines a Candle is Neutral or not ...
|
||||
isBearishCandle() =>
|
||||
close < low + getCandleThird()
|
||||
/////////////////////////////
|
||||
// END Price Action Candles
|
||||
/////////////////////////////
|
||||
//
|
||||
// END Functions ....
|
||||
//
|
||||
|
||||
//
|
||||
// START Calculations ....
|
||||
//
|
||||
//
|
||||
var shortColor = color.red
|
||||
var longColor = color.lime
|
||||
|
||||
//////////////////////////////
|
||||
// START Price Action Candles
|
||||
//////////////////////////////
|
||||
//
|
||||
var bullishColor = color.lime
|
||||
var bullishShape = shape.arrowup
|
||||
var bullishTitle = "Bullish"
|
||||
var bullishType = 1
|
||||
|
||||
//
|
||||
var bearishColor = color.red
|
||||
var bearishShape = shape.arrowdown
|
||||
var bearishTitle = "Bearish"
|
||||
var bearishType = -1
|
||||
|
||||
//
|
||||
var neutralColor = color.gray
|
||||
var neutralShape = shape.circle
|
||||
var neutralTitle = "Neutral"
|
||||
var neutralType = 0
|
||||
|
||||
//
|
||||
candleType = isBullishCandle() ? bullishType : isNeutralCandle() ? neutralType : isBearishCandle() ? bearishType : neutralType
|
||||
|
||||
//
|
||||
prevCandleType = not na(candleType[1]) ? candleType[1] : neutralType
|
||||
|
||||
//
|
||||
candleNeighborhoodBaseType = prevCandleType + candleType
|
||||
/////////////////////////////
|
||||
// END Price Action Candles
|
||||
/////////////////////////////
|
||||
|
||||
////////////////////////////
|
||||
// START Last Market Price
|
||||
////////////////////////////
|
||||
//
|
||||
lastMarketLowest = ta.lowest(low, swingLoopback)
|
||||
lastMarketLowest2 = ta.lowest(low, swingLoopback * 2)
|
||||
lastMarketLowest3 = ta.lowest(low, swingLoopback * 3)
|
||||
|
||||
//
|
||||
lastMarketHighest = ta.highest(high, swingLoopback)
|
||||
lastMarketHighest2 = ta.highest(high, swingLoopback * 2)
|
||||
lastMarketHighest3 = ta.highest(high, swingLoopback * 3)
|
||||
////////////////////////////
|
||||
// END Last Market Price
|
||||
////////////////////////////
|
||||
|
||||
///////////////////////
|
||||
// START Strategy ...
|
||||
///////////////////////
|
||||
//
|
||||
canShowStopLoss = showSignals and showStopLosses and (showLongSignals or showShortSignals) and (showLongStopLosses or showShortStopLosses)
|
||||
canShowLongStopLoss = canShowStopLoss and showLongStopLosses // and not na(ATRSLLongStopLoss)
|
||||
canShowShortStopLoss = canShowStopLoss and showShortStopLosses // and not na(ATRSLShortStopLoss)
|
||||
|
||||
//
|
||||
hasSignal = false // HUTRHasSignal
|
||||
|
||||
//
|
||||
hasLongSignal = hasSignal and isBullishCandle() and false // HUTRHasLongSignal
|
||||
longSignal = hasLongSignal ? na : na // HUTRLongSignal : na
|
||||
float longStopLoss = lastMarketLowest
|
||||
|
||||
//
|
||||
hasShortSignal = hasSignal and isBearishCandle() and false // HUTRHasShortSignal
|
||||
shortSignal = hasShortSignal ? na : na // HUTRShortSignal : na
|
||||
float shortStopLoss = lastMarketHighest
|
||||
|
||||
//
|
||||
canShowSignal = showSignals and (showLongSignals or showShortSignals)
|
||||
canShowLongSignal = canShowSignal and showLongSignals and hasLongSignal
|
||||
canShowShortSignal = canShowSignal and showShortSignals and hasShortSignal
|
||||
///////////////////////
|
||||
// END Strategy ...
|
||||
///////////////////////
|
||||
//
|
||||
// END Calculations ....
|
||||
//
|
||||
|
||||
//
|
||||
// START Plots ....
|
||||
//
|
||||
//
|
||||
// Signals ...
|
||||
plotshape(canShowLongSignal ? longSignal : na, title = "Long Signal", color = longColor, location = location.belowbar, style = shape.triangleup, size = size.normal)
|
||||
plotshape(canShowShortSignal ? shortSignal : na, title = "Short Signal", color = shortColor, location = location.abovebar, style = shape.triangledown, size = size.normal)
|
||||
|
||||
//
|
||||
// Stop Losses ...
|
||||
plot(series = canShowLongStopLoss ? longStopLoss : na, color = color.fuchsia, linewidth = 1, style = plot.style_stepline, title = "Long Stop Loss")
|
||||
plot(series = canShowShortStopLoss ? shortStopLoss : na, color = color.aqua, linewidth = 1, style = plot.style_stepline, title = "Short Stop Loss")
|
||||
//
|
||||
// END Plots ....
|
||||
//
|
||||
|
||||
//
|
||||
// START Alerts ...
|
||||
//
|
||||
alertcondition(hasSignal, "XST_SHULL5M > Signal")
|
||||
alertcondition(hasLongSignal, "XST_SHULL5M > Long Signal")
|
||||
alertcondition(hasShortSignal, "XST_SHULL5M > Short Signal")
|
||||
//
|
||||
// END Alerts ...
|
||||
//
|
||||
|
||||
//////////////////////////////////////////////////////
|
||||
// TODOS:
|
||||
// -------
|
||||
// - []
|
||||
//////////////////////////////////////////////////////
|
||||
@@ -0,0 +1,55 @@
|
||||
Daily Time Frame:
|
||||
------------------
|
||||
|
||||
-------------------------
|
||||
LONGS:
|
||||
-------------------------
|
||||
|
||||
XTrade Strong Buy Signals
|
||||
-------------------------
|
||||
R2R => 1 risk to 2 reward
|
||||
|
||||
Signals:
|
||||
---------
|
||||
Found:
|
||||
TP:
|
||||
SL:
|
||||
Open:
|
||||
|
||||
XTrade Buy Signals
|
||||
-------------------
|
||||
R2R => 1 risk to 1.5 reward
|
||||
|
||||
Signals:
|
||||
---------
|
||||
Found:
|
||||
TP:
|
||||
SL:
|
||||
Open:
|
||||
|
||||
|
||||
--------------------------
|
||||
SHORTS:
|
||||
--------------------------
|
||||
|
||||
XTrade Strong SELl Signals
|
||||
--------------------------
|
||||
R2R => 1 risk to 2 reward
|
||||
|
||||
Signals:
|
||||
---------
|
||||
Found:
|
||||
TP:
|
||||
SL:
|
||||
Open:
|
||||
|
||||
XTrade Sell Signals
|
||||
--------------------
|
||||
R2R => 1 risk to 1.5 reward
|
||||
|
||||
Signals:
|
||||
---------
|
||||
Found:
|
||||
TP:
|
||||
SL:
|
||||
Open:
|
||||
Reference in New Issue
Block a user