für my strategy I will need the integer number of pips:
risk_long = GetCurrentBid() - Swing(SWValue).SwingLow[0];
risk_long_pip1 = risk_long * 10000;
risk_long_pip1 = Math.Round(risk_long_pip1);
GainLong1 = risk_long_pip1;
#region Variables
.....
private double risk_long = 0;
private double risk_long_pip1 = 0;
private double gainLong1 = 0;
.....
#region LONG Entry and Profit:
-----
if ......
{
EnterLongStop((int)(PTLongTA1*1000), High[0], "Long1");
.....
}
Where ist the problem?
Thanks für your support..
Andrew
Comment