Non-standard Timeframe PMO Helper wTargets

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

Moderator: admin


Re: Non-standard Timeframe PMO Helper wTargets

Postby jrichardson83 » Tue May 07, 2019 9:15 am

Something odd is happening. As I compress the chart (add more data) the indicator seems to calculate further back, like its repainting further back in time and not displaying the most recent signal.
jrichardson83
FXCodeBase: Initiate
 
Posts: 194
Joined: Thu Jan 01, 2015 1:03 pm

Re: Non-standard Timeframe PMO Helper wTargets

Postby Apprentice » Thu May 09, 2019 1:03 pm

yes, it'll happen because FXTS2 limit the amount of data available to the indicator.
I don't think it's possible to fix in the code.
The only way to fix it is to use higher timeframes which show all the data needed.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 22093
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Non-standard Timeframe PMO Helper wTargets

Postby jrichardson83 » Fri May 17, 2019 6:02 pm

Apprentice wrote:yes, it'll happen because FXTS2 limit the amount of data available to the indicator.
I don't think it's possible to fix in the code.
The only way to fix it is to use higher timeframes which show all the data needed.


Alright, thanks for giving it a go. I don't think that it'll be useful in the strategy I'm using because of the way it paints.

I'm wondering though, would the same problem arise if you programmed the targets algorithm for a standard RSI indicator, buy when RSI crosses above 50, sell when RSI crosses below? (See picture) If so, could you program this for me (and include the vertical line option).

RSI Targets.png
jrichardson83
FXCodeBase: Initiate
 
Posts: 194
Joined: Thu Jan 01, 2015 1:03 pm

Re: Non-standard Timeframe PMO Helper wTargets

Postby Apprentice » Sun May 19, 2019 4:10 am

How we will calculate Stop/Target levels?
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 22093
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Non-standard Timeframe PMO Helper wTargets

Postby jrichardson83 » Sun May 19, 2019 4:27 am

Apprentice wrote:How we will calculate Stop/Target levels?


Well, what I was thinking was that you would base the stop relative to the last high or low from when the indicator conditions are met. For example, in the image, the RSI crosses below 50. The stop is placed at the most recent prior high and the target is set to a risk/reward of 1:1 (just as an example). This functionality would be similar to the way in which the PSAR Targets and Moving Average Target indicators work.

Is that possible with the RSI?
jrichardson83
FXCodeBase: Initiate
 
Posts: 194
Joined: Thu Jan 01, 2015 1:03 pm

Re: Non-standard Timeframe PMO Helper wTargets

Postby Apprentice » Tue May 21, 2019 5:05 am

Your request is added to the development list under Id Number 4670
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 22093
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Non-standard Timeframe PMO Helper wTargets

Postby jrichardson83 » Sun Jun 02, 2019 8:48 pm

Apprentice wrote:Your request is added to the development list under Id Number 4670


Just wanted to check on the status of this indie??
jrichardson83
FXCodeBase: Initiate
 
Posts: 194
Joined: Thu Jan 01, 2015 1:03 pm

Re: Non-standard Timeframe PMO Helper wTargets

Postby Apprentice » Tue Jun 04, 2019 5:54 am

RSI wTargets.lua
(37.84 KiB) Downloaded 111 times

Try this version.
Fixed an issue in Non-standard Timeframe PMO Helper wTargets.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 22093
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Non-standard Timeframe PMO Helper wTargets

Postby jrichardson83 » Thu Jun 06, 2019 3:55 pm

Apprentice wrote:
The attachment RSI wTargets.lua is no longer available

Try this version.
Fixed an issue in Non-standard Timeframe PMO Helper wTargets.


I also noticed that this indie doesn't seem to be calculating correctly. In the image, the RSI last crossed below 50 on 05/31, but the indicator is painting, real time, the close on 06/03 and is repainting in real time as the price fluctuates on the current intraday candle of 06/06.

RSI.png
jrichardson83
FXCodeBase: Initiate
 
Posts: 194
Joined: Thu Jan 01, 2015 1:03 pm

Next

Return to Custom Indicators

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 13 guests