| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Pips Profit Alert https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3633 |
Page 1 of 2 |
| Author: | Pedigree [ Mon May 19, 2014 10:09 am ] |
| Post subject: | Pips Profit Alert |
Wonder if any coder will be willing to try their hands at an indicator that will give an alert when a set number of profit pips has been hit for a particular pair. For instance, if I had say 4 or 5 trades going for GU, when the total profit in pips reaches a set level, the alert will go off specifying that the set level has been reached. The indi could also display on the chart the total pips in profit for the pair, as well as the total profit in currency. I suspect there could already exist an indi like this. If you know of it please give a shout. |
|
| Author: | milanese [ Mon May 19, 2014 10:23 am ] |
| Post subject: | Pips Profit Alert |
Take a look here http://www.forexfactory.com/showthread. ... ost7403504 Cheers Tommaso |
|
| Author: | Pedigree [ Mon May 19, 2014 10:56 am ] |
| Post subject: | Pips Profit Alert |
Thanks Tommaso but this is not quite it. This gives an alert at a set amount of profit in cash. I would like the alert to go off for a set amount of profit in pips. Also, all the trades on the chart do not have to be in profit before the alert sounds. The alert will sound as soon as the set amount in pips is reached, even if this is from just one of several trades of the pair. So, the chart display should only show the pips total in profit (and cash) for the pair, meaning that the figures displayed will ALWAYS either be zero or positive. |
|
| Author: | milanese [ Mon May 19, 2014 11:24 am ] |
| Post subject: | Pips Profit Alert |
Ok here you find a modified version, use FilterBySymbol true and it shpows only the profit for the actual pair you have it attached, Use_Profit_PipsAlert set this to true, and it will give you alerts if the PipsForProfitAlert is reached, it shows too a negativ profit (loss), but this is no problem and imo better than a zero showing....
Cheers Tommaso |
|
| Author: | Pedigree [ Mon May 19, 2014 12:01 pm ] |
| Post subject: | Pips Profit Alert |
This is great Tommaso - just what the doctor ordered!!! Thank you sooo much. It's no longer working in 509 though. I still do all my compiling in the 509 editor. If it won't be too much trouble, could you please make it 509-compatible? And BTW, as a coder, you'll probably know better but won't it save a lot of back-and-forth to just make all indis and EAs usable in all builds? Thanks a lot. |
|
| Author: | milanese [ Mon May 19, 2014 12:13 pm ] |
| Post subject: | Pips Profit Alert |
Please redownload I made some change now it should work perfect with both builds.. Cheers Tommaso |
|
| Author: | Pedigree [ Mon May 19, 2014 12:22 pm ] |
| Post subject: | Pips Profit Alert |
That's super Tommaso! Thanks ever so much. |
|
| Author: | Pedigree [ Mon May 19, 2014 1:54 pm ] |
| Post subject: | Pips Profit Alert |
Tommaso, on looking through the code, I find that this will not work as desired. The condition for the pips alert is this: Code: Select all Apologies if I did not explain myself clearly enough, but please consider the following scenario in which I have 5 orders of say GU. Order 1 -100 pips Order 2 -80 pips Order 3 -30 pips Order 4 +50 pips Order 5 +52 pips If I set PipsForProfitAlert at 100 pips, I will not get an alert because profitpips will have a value of -108. BUT I should get an alert because the sum of orders 4 and 5 have exceeded my PipsForProfitAlert. This is really ONLY about the orders in profit. This is why I said earlier that the pips display should only show the sum of the profit pips, so that it is always either zero or positive. If you can spare the time, please take a look at it again. Thank you. |
|
| Author: | milanese [ Mon May 19, 2014 3:16 pm ] |
| Post subject: | Pips Profit Alert |
Find it attached if you set ShowOnlyTradesWithPositivProfit it show only the addition of trades in this pair that are in profit..
Cheers Tommaso |
|
| Author: | Pedigree [ Mon May 19, 2014 3:48 pm ] |
| Post subject: | Pips Profit Alert |
Now, this is exactly right, Tommaso. Thank you very much. |
|
| All times are UTC | Page 1 of 2 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|