stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

MPTM updated
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=5190
Page 10 of 13
Author:  SteveHopwood [ Tue Nov 02, 2021 2:39 pm ]
Post subject:  MPTM updated

V 1g is in post 1. I discovered a bloop in the equity global profit target function. Fixed in 1g.

:xm: :rocket:
Author:  peje [ Fri Apr 29, 2022 6:56 pm ]
Post subject:  MPTM updated

Hello, I would like to ask if anyone has a similar experience when using a hedge superslope. MPTM opens and closes a hedge immediately. I understand that this can happen when a wrong time frame chosen , but it happens on any timeframe to me as well as when I change MA Slope Period.
Author:  SteveHopwood [ Fri Apr 29, 2022 7:01 pm ]
Post subject:  MPTM updated

peje » Fri Apr 29, 2022 6:56 pm wrote:Hello, I would like to ask if anyone has a similar experience when using a hedge superslope. MPTM opens and closes a hedge immediately. I understand that this can happen when a wrong time frame chosen , but it happens on any timeframe to me as well as when I change MA Slope Period.
Here is the thingy. According to your settings, if one part of the code opens a trade whilst another part of the code closes it, then this is what happens. Literal thingies, my bots. You have to work out the settings for yourself.

:xm: :rocket:
Author:  danjuma [ Sun Jun 05, 2022 7:02 pm ]
Post subject:  MPTM updated

Hello Steve. If it's not too much trouble and you have got the time, would it be possible to add a trailing stop based on a bar closing below (for a long trade) or above (for a short trade) a user specified moving average? For example, I have a long trade, and want a trailing stop to kick in (after the trade has been part closed at BE) and trail say the 10 EMA, so if the say H1 bar closes below the 10 EMA, the remaining trade is closed. Thank you
Author:  SteveHopwood [ Sun Jun 05, 2022 9:42 pm ]
Post subject:  MPTM updated

danjuma » Sun Jun 05, 2022 7:02 pm wrote:Hello Steve. If it's not too much trouble and you have got the time, would it be possible to add a trailing stop based on a bar closing below (for a long trade) or above (for a short trade) a user specified moving average? For example, I have a long trade, and want a trailing stop to kick in (after the trade has been part closed at BE) and trail say the 10 EMA, so if the say H1 bar closes below the 10 EMA, the remaining trade is closed. Thank you
Prove this is of some value to the rest of us and I might be interested. For now, no.

:xm: :rocket:
Author:  danjuma [ Mon Jun 06, 2022 6:54 am ]
Post subject:  MPTM updated

SteveHopwood » Sun Jun 05, 2022 9:42 pm wrote:
danjuma » Sun Jun 05, 2022 7:02 pm wrote:Hello Steve. If it's not too much trouble and you have got the time, would it be possible to add a trailing stop based on a bar closing below (for a long trade) or above (for a short trade) a user specified moving average? For example, I have a long trade, and want a trailing stop to kick in (after the trade has been part closed at BE) and trail say the 10 EMA, so if the say H1 bar closes below the 10 EMA, the remaining trade is closed. Thank you
Prove this is of some value to the rest of us and I might be interested. For now, no.

:xm: :rocket:
Hi Steve, I can't prove its value. It's just another form of trailing stop. It's like saying I should prove the value of trailing stop based on ATR or multiples of ATR, fixed pips, bollinger bands etc. It all depends on one's methods, strategy, risk tolerance etc. None of these things work 100%, it's all probabilities and a numbers game. So, I am sorry you are asking me to find you a unicorn. Anyways, thanks for at least thinking about it. God bless.
Author:  Godwin [ Wed Aug 03, 2022 12:48 pm ]
Post subject:  MPTM updated

Good day Steve. How do I input 11.2 pips or 112 points SL, TP or BE on the MPTM EA?
I am only able to input 11 pips.

Is there a way to add decimal numbers to the pips?
This decimal pips will take care of spread

Thank you
Author:  SteveHopwood [ Wed Aug 03, 2022 2:40 pm ]
Post subject:  MPTM updated

Godwin » Wed Aug 03, 2022 12:48 pm wrote:Good day Steve. How do I input 11.2 pips or 112 points SL, TP or BE on the MPTM EA?
I am only able to input 11 pips.

Is there a way to add decimal numbers to the pips?
This decimal pips will take care of spread

Thank you
There isn't, but there is a work around. I always declare variables concerning pips as integers, then declare a doubles variable that takes a copy of the integer for use throughout the program. I do this to avoid any confusion between pips and points.

The workaround is to convert the integers into doubles. For example:
extern int MissingTakeProfitPips = 200;//Take profit size in pips.
becomes:
extern double MissingTakeProfitPips = 200;//Take profit size in pips.

Do a non-specific search for "takeprofit" and "stoploss" to find the declarations to convert, then recompile the code.



:xm: :rocket:
Author:  Godwin [ Fri Aug 05, 2022 11:47 am ]
Post subject:  MPTM updated

SteveHopwood » Wed Aug 03, 2022 3:40 pm wrote: There isn't, but there is a work around. I always declare variables concerning pips as integers, then declare a doubles variable that takes a copy of the integer for use throughout the program. I do this to avoid any confusion between pips and points.

The workaround is to convert the integers into doubles. For example:
extern int MissingTakeProfitPips = 200;//Take profit size in pips.
becomes:
extern double MissingTakeProfitPips = 200;//Take profit size in pips.

Do a non-specific search for "takeprofit" and "stoploss" to find the declarations to convert, then recompile the code.

:xm: :rocket:
Thank you Steve.

I did convert the "Break Even" and "take profit" from int to double.
The are the following lines in the code
line 134,
line 135
line 204
line 214
I got 4 warnings on recompiling the code

On using the EA , I got the following screen alerts
Attached is the Modified MPTM

What do I do to correct the error.
Thank you
Author:  SteveHopwood [ Fri Aug 05, 2022 1:13 pm ]
Post subject:  MPTM updated

Godwin » Fri Aug 05, 2022 11:47 am wrote: Thank you Steve.

I did convert the "Break Even" and "take profit" from int to double.
The are the following lines in the code
line 134,
line 135
line 204
line 214
I got 4 warnings on recompiling the code

On using the EA , I got the following screen alerts
Attached is the Modified MPTM

What do I do to correct the error.
Thank you
Don't worry about the warnings - that is all they are. If they bother you then go to the top of the file and find this line of code: #property strict

Comment it out like this:
//#property strict

The code will turn grey; this is how commented out code looks.

As to the runtime alerts, you have turned of AutoTrading. You will see the button in the top button bar has a red cross. Clidk on it to reenable EA's.

:xm: :rocket:
All times are UTC Page 10 of 13