• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 11:51am
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 11:51am
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Requesting assistance in modifying MT5 pivot point indicator 0 replies

Requesting Assistance with my MA/RSI EA 6 replies

Programmer assistance requested for Schaff EA 5 replies

Programmer assistance requestef for Schaff EA 0 replies

MT4 Programmer needed for simple custom indicator 3 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 25
Attachments: Requesting programmer assistance with custom indicator
Exit Attachments
Tags: Requesting programmer assistance with custom indicator
Cancel

Requesting programmer assistance with custom indicator

  • Last Post
  •  
  • Page 1 234 5
  • Page 1 234 5
  •  
  • Post #1
  • Quote
  • First Post: Edited May 23, 2013 9:57am Jun 26, 2008 12:49am | Edited May 23, 2013 9:57am
  •  Omniferum
  • | Joined Jun 2008 | Status: Member | 100 Posts
asd
  • Post #2
  • Quote
  • Jun 26, 2008 7:14am Jun 26, 2008 7:14am
  •  DaveL
  • | Joined Aug 2006 | Status: Member | 142 Posts
"Both with stochastic crossed heading up"

... does this mean that you want the signal only when there's a stochastic cross?

Also, do you want the signal to be based on the most recent fully completed, confirmed bar (2nd-to-last bar of the chart) or the most immediate, instantaneous bar (right-most bar of the chart)?

(Confirmed lags, but instantaneous is more prone to false signals.)
Dave
 
 
  • Post #3
  • Quote
  • Jun 26, 2008 7:39am Jun 26, 2008 7:39am
  •  Omniferum
  • | Joined Jun 2008 | Status: Member | 100 Posts
Well the way i'm operating on is the signal given on an open bar but i'm fairly sure the default calculation for AC/AO and Stochastic is based on the previous bar.

I would prefer the stochastic cross signal given instant though and I can decide from there.

As it stands now I just check to see if the signal is only going that direction, the crossing of it is not really that important to me.

Does that answer your question?
 
 
  • Post #4
  • Quote
  • Jun 26, 2008 7:52am Jun 26, 2008 7:52am
  •  DaveL
  • | Joined Aug 2006 | Status: Member | 142 Posts
The actual trigger (to give you the buy/sell signal) is still unclear.

For example, a stochastics crossing would be a definite trigger.
Or, the crossing of AO/AC above/below a certain value (such as 0) would be a definite trigger.
Or, the change of AO/AC to/from red/green would be a definite trigger.

To be a trigger, something needs to change from a certain condition to another (a certain level to another, etc).

But so far, your conditions don't specify an actual trigger (which I why I asked my first question.)

Please clarify what is your trigger, or elaborate if that's not what you want.
Dave
 
 
  • Post #5
  • Quote
  • Jun 26, 2008 7:57am Jun 26, 2008 7:57am
  •  Omniferum
  • | Joined Jun 2008 | Status: Member | 100 Posts
Sorry for being unclear.

The initial trigger yes for stochastic would be a cross in a certain direction, I would like the signal to be triggered exactly when the cross happens. I sort of omitted the fact that it would nice (if at all possible) to have the signal (extend) to show the general trend and then end when the signal is no longer valid (i.e. ac/ao/stochastic change)

but that isn't necessary, just the initial signal is, not that hard to follow my finger on a chart.


Buy Signal

Positive AO + Stochastic cross up

OR

Negative Green AO + green AC (position doesn't matter) + Stochastic cross up


Sell Signal

Negative AO + Stochastic cross down

OR

Positive Red AO + Red AC + Stochastic Cross down
 
 
  • Post #6
  • Quote
  • Edited 10:51am Jun 26, 2008 9:08am | Edited 10:51am
  •  DaveL
  • | Joined Aug 2006 | Status: Member | 142 Posts
Here you go ...

Use the "offset" parameter to specify the number of pips above/below the high/low of the bar which to paint the arrows.

Also, I based the indicator on instantaneous action, but the arrow will be erased if the final completed bar does not ultimiately satisfy the signal conditions. (That is, while the current bar is forming, the arrow may flicker on/off, and depending on how the bar completes, the arrow may remain on the chart or be erased.)
Attached File(s)
File Type: mq4 AO_AC_Stoch.mq4   4 KB | 380 downloads
Dave
 
 
  • Post #7
  • Quote
  • Jun 26, 2008 9:14am Jun 26, 2008 9:14am
  •  Omniferum
  • | Joined Jun 2008 | Status: Member | 100 Posts
Wow, thanks.


I don't suppose there is anything I could offer in return?

As I said I am aware it is a simple piece of code but it means the world to me, simplifies a LOT
 
 
  • Post #8
  • Quote
  • Jun 26, 2008 9:15am Jun 26, 2008 9:15am
  •  DaveL
  • | Joined Aug 2006 | Status: Member | 142 Posts
No problem, Friend. Best of luck w/ using it.
Dave
 
 
  • Post #9
  • Quote
  • Jun 26, 2008 9:22am Jun 26, 2008 9:22am
  •  Omniferum
  • | Joined Jun 2008 | Status: Member | 100 Posts
One of the things i've just found is that sell signals seem to be not registering properly but all the buy ones are spot on.

There are some sell signals but there are some points where I can see that one should register but it isn't. It seems to be spotty and i'm not sure what the discrepancy is

I'd rummage through the code but i'd have little to no idea what i'm looking at.
 
 
  • Post #10
  • Quote
  • Jun 26, 2008 9:25am Jun 26, 2008 9:25am
  •  DaveL
  • | Joined Aug 2006 | Status: Member | 142 Posts
Hmm ... the code checks out according to your specs. My visual inspection of the results show the signals are ok on my charts.

Can you post a few graphs to show exactly where the discrepencies are? That will help the debugging. Maybe I didn't understand your instructions?
Dave
 
 
  • Post #11
  • Quote
  • Jun 26, 2008 9:28am Jun 26, 2008 9:28am
  •  Omniferum
  • | Joined Jun 2008 | Status: Member | 100 Posts
No, you understood them perfectly fine. I couldn't simplify them much more anyway. It just seems odd that SOME signals are registered and some aren't, the stochastic settings are the same on my chart as they are in the indicator. same mode too i'm sure (Simple)

I've looked at the code and I can follow the logic used so there really shouldn't be an issue there. I mean in regards to the AC and AO, the < > signs where what I looked at.

did you code anything regarding the AC position? Because it doesn't matter, only the colour matters for AC.

I'll try and take a few shots and add arrows to the graph, gimme a few minutes
 
 
  • Post #12
  • Quote
  • Jun 26, 2008 9:32am Jun 26, 2008 9:32am
  •  DaveL
  • | Joined Aug 2006 | Status: Member | 142 Posts
That's correct: no consideration of AC's actual value (positive/negative), only whether it's red/green (decreasing/increasing).
Dave
 
 
  • Post #13
  • Quote
  • Jun 26, 2008 9:59am Jun 26, 2008 9:59am
  •  Omniferum
  • | Joined Jun 2008 | Status: Member | 100 Posts
Had to duck out for 5 minutes, perhaps it is my interpretation of stochastic crossing? To me that just means one line is over another, do stochastic calculation for cross apply only to when the signal crosses a few bars previous?
 
 
  • Post #14
  • Quote
  • Jun 26, 2008 10:04am Jun 26, 2008 10:04am
  •  Omniferum
  • | Joined Jun 2008 | Status: Member | 100 Posts
Bah, that can't be right. Some sell signals are smack on the cross and some a few bars after and some don't exist at all even if the signal persists for 5 more bars.
Attached Image (click to enlarge)
Click to Enlarge

Name: audjpy.jpg
Size: 196 KB
 
 
  • Post #15
  • Quote
  • Jun 26, 2008 10:10am Jun 26, 2008 10:10am
  •  DaveL
  • | Joined Aug 2006 | Status: Member | 142 Posts
The way I defined "stochastic crossing" is this:

When the stochastic main line crosses above the stochastic signal line, this is an up-cross, or bullish-cross. (Qualifies for buy signals.)

When the stochastic main line crosses below the stochastic signal line, this is a down-cross, or bearish-cross. (Qualifies for sell signals.)

Let me know if that agrees with your definition.
Dave
 
 
  • Post #16
  • Quote
  • Jun 26, 2008 10:20am Jun 26, 2008 10:20am
  •  Omniferum
  • | Joined Jun 2008 | Status: Member | 100 Posts
In the picture I attached above the outlined box should have a sell signal in this, signals for me are %K and %D crossing

Do you not think there should be a signal there?

Again I am only operating on my interpretation, the code is most likely right and my interpretation is incorrect.
 
 
  • Post #17
  • Quote
  • Jun 26, 2008 10:27am Jun 26, 2008 10:27am
  •  DaveL
  • | Joined Aug 2006 | Status: Member | 142 Posts
According to my interpretation, the box you drew should not have a sell signal, because the main line never crosses below the signal line in the box. It does correctly have a buy signal because toward the right end of the box, the main line crosses above the signal line & the AO/AC conditions are satisfied - hence, the buy signal. The other signals on the chart appear correct to me, also.

So, apparently, there is a major misunderstanding with what you consider to be a "stochastic cross." Please define explicitly. (The cyan, solid line in your graph is the stochastic main line, while the red, dashed line is the stochastic signal line.)
Dave
 
 
  • Post #18
  • Quote
  • Jun 26, 2008 10:34am Jun 26, 2008 10:34am
  •  Omniferum
  • | Joined Jun 2008 | Status: Member | 100 Posts
Perhaps it is coded upon the first crossing of stochastic and everything else meeting up?

To me that seems a valid sell signal because stochastic is heading down. The cross happened a few bars back but to me the signal would still be valid.

I should perhaps not say cross and instead just say heading the needed direction with the correct signals (solid line under dashed line for sell)
 
 
  • Post #19
  • Quote
  • Jun 26, 2008 10:38am Jun 26, 2008 10:38am
  •  Ronald Raygun
  • Joined Jul 2007 | Status: 32 y/o Investor/Trader/Programmer | 5,016 Posts
Looks to me more like a 0-line cross, or a cross of AC...
 
 
  • Post #20
  • Quote
  • Jun 26, 2008 10:38am Jun 26, 2008 10:38am
  •  DaveL
  • | Joined Aug 2006 | Status: Member | 142 Posts
Then, we're back to this post:

Quoting DaveL
Disliked
The actual trigger (to give you the buy/sell signal) is still unclear.

For example, a stochastics crossing would be a definite trigger.
Or, the crossing of AO/AC above/below a certain value (such as 0) would be a definite trigger.
Or, the change of AO/AC to/from red/green would be a definite trigger.

To be a trigger, something needs to change from a certain condition to another (a certain level to another, etc).

But so far, your conditions don't specify an actual trigger (which I why I asked my first question.)

Please clarify what is your trigger, or elaborate if that's not what you want.
Ignored
So, now you are saying that the stochasitc cross itself is not the trigger. But then, what is? Something has to change from one definite condition to another definite condition (such as a stoch cross, etc) in order for the indicator to "know" where to paint an arrow to provide your buy/sell signal. You need to precisely define what is your triggering condition.
Dave
 
 
  • Platform Tech
  • /
  • Requesting programmer assistance with custom indicator
  • Reply to Thread
    • Page 1 234 5
    • Page 1 234 5
0 traders viewing now
  • More
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2023