Forex
Google

Go Back   Forex Trading > Non Related Discussions
Forex Forum Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack (12) Thread Tools Display Modes
  12 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 06-02-2007, 06:13 PM
mrebersv mrebersv is offline
Member
 
Join Date: Dec 2006
Location: Minnesota, USA
Posts: 84
mrebersv is on a distinguished road
Has anyone seen FX_Sniper lately?

I know he pretty much abandoned trying to help people on the forums since it cost him so much time and energy. I have a programming problem that I know he's solved before. I can't figure out anyway to contact him, however. The Gmail account he has listed (on this or another site) returns email as "undeliverable" as well as his hotmail account. I've tried PMing him on this forum, but I get this error: "FX_Sniper has chosen not to receive private messages or may not be allowed to receive private messages. Therefore you may not send your message to him/her."

I know he's not looking to be contacted. The reason I'm looking to contact him is because he's solved this issue before and could tell me where I'm going wrong in less than 5 minutes. He's also the only person I know who's solved this problem.

If anyone is in contact with him, please let him know that I'm looking for his guidance for only a few minutes. Or if you actually have his contact information, please PM it to me and I can plead my case with him.

-Matt
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-02-2007, 09:34 PM
Michel Michel is offline
Senior Member
 
Join Date: Feb 2006
Posts: 509
Michel is on a distinguished road
What's your problem ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-04-2007, 04:27 AM
mrebersv mrebersv is offline
Member
 
Join Date: Dec 2006
Location: Minnesota, USA
Posts: 84
mrebersv is on a distinguished road
This post describes my situation.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 06-04-2007, 05:25 AM
Michel Michel is offline
Senior Member
 
Join Date: Feb 2006
Posts: 509
Michel is on a distinguished road
Quote:
Originally Posted by mrebersv
This post describes my situation.
Quote:
Originally Posted by mrebersv
...and divide by one since it's only one timeframe apart, but that doesn't need to actually be computed since it doesn't affect the number.
If you want to obtain something significant, the slope should be expressed in pips/minute, or in pips/hour and not in pips/TimeframeUnit. So you have to divide by Period or by Period*60.

Hope this help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 06-04-2007, 04:45 PM
mrebersv mrebersv is offline
Member
 
Join Date: Dec 2006
Location: Minnesota, USA
Posts: 84
mrebersv is on a distinguished road
Thanks for the reply. I'll get to that change as soon as I can today.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 06-04-2007, 10:13 PM
mrebersv mrebersv is offline
Member
 
Join Date: Dec 2006
Location: Minnesota, USA
Posts: 84
mrebersv is on a distinguished road
Well, I'm still having the same problem. Attached is the code for my "indicator" as well as the real indicator (though this is just in .ex4 form, not .mq4). My indicator prints some values to the top left corner of the window that are used in the calculation for the sidewinder. Mine shows the information for the last complete bar, not the current bar. The "angleLsma" result should be the angle of the lsma between the last complete bar and the bar immediately prior to the last complete bar.

The 'sidewinderValue' is the sum of the two angles. When the actual sidewinder indicator (FX Sniper's) is green, my sidewinderValue should be over 100. When the actual sidewinder is red, my sidewinderValue should be less than 75. Between 75 and 100 are supposed to be when the real thing is yellow. If you test this out, it doesn't hold true. Also, the "angles" reported by my indicator are never less than zero as they should be.

Any ideas?
Attached Files
File Type: mq4 Matt's Sidewinder v1.mq4 (2.9 KB, 81 views)
File Type: ex4 FX Sniper's SideWinder Overlay.ex4 (6.5 KB, 61 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 06-04-2007, 11:07 PM
Michel Michel is offline
Senior Member
 
Join Date: Feb 2006
Posts: 509
Michel is on a distinguished road
At first look, there maybe a mistake calling LSMA() : shift should be 0 and 1 as you have already a one bar offset in the func: for(i = length; i >= 1 ; i--)
Another mistake may be here :
(lsma25/oldLsma)/timeframe*1000; shouldn't be (lsma25-oldLsma)/timeframe*10000; or better : (lsma25-oldLsma)/(Period()*Point); ???
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 06-05-2007, 12:47 AM
mrebersv mrebersv is offline
Member
 
Join Date: Dec 2006
Location: Minnesota, USA
Posts: 84
mrebersv is on a distinguished road
LOL! I don't know how I missed that so many times.

Attached is my latest version. I did NOT incorporate the suggested LSMA() change. The reason for outputting the LSMA value is to double-check these things. If the function call is "LSMA(25,0)," the output for lsma25 changes if the current bar has enough movement to affect the lsma25. This tells me that it takes the current bar into account if there is a shift of 0. *Note: the LSMA() code isn't mine. I found it quicker to copy the code from an indicator I already had than to rewrite it. Thanks to whomever originally coded that (FX_Sniper?).

I'm still having an issue, however. The angles reported are quite close to what I get with the "Trendline by angle" tool in MT4, IF you multiply the values reported by my "indicator" by 10. I don't know why this would need to happen, and I'm qualifying my lack of understanding as an issue with the indicator. Also, I still don't think the sidewinderValue values line up with what it's "supposed" to based on the formulas posted online.

I feel like I'm learning about programming for the first time with all these little issues. Anyway, if you could shed anymore light on this, I'd be very appreciative.
Attached Files
File Type: mq4 Matt's Sidewinder v1.mq4 (2.8 KB, 74 views)

Last edited by mrebersv : 06-05-2007 at 12:55 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 06-05-2007, 08:24 AM
Michel Michel is offline
Senior Member
 
Join Date: Feb 2006
Posts: 509
Michel is on a distinguished road
You are right about the shift of the LSMA func, I didn't read the code enough carefully: in fact, when i==length, close[0+shift] is involved.
About the 10 factor, it seems that you compare apples and peers. Your slope is expressed in pip/minute and is invariant against the timeframe or the zoom of the chart, this means that its visual representation as an angle will be variable folowing the zoom, but the "Trendline by angle" tool is totaly static, fix, against the timeframe or the zoom : the line and the angle are constant even if you change the timeframe. If you look at a M1 chart, your angle should be correct.
Now, I don't really understand why you try to use angles, just using the slopes should be easier and more understandable (from my point of vue...)

Quote:
Originally Posted by mrebersv
LOL! I don't know how I missed that so many times.

Attached is my latest version. I did NOT incorporate the suggested LSMA() change. The reason for outputting the LSMA value is to double-check these things. If the function call is "LSMA(25,0)," the output for lsma25 changes if the current bar has enough movement to affect the lsma25. This tells me that it takes the current bar into account if there is a shift of 0. *Note: the LSMA() code isn't mine. I found it quicker to copy the code from an indicator I already had than to rewrite it. Thanks to whomever originally coded that (FX_Sniper?).

I'm still having an issue, however. The angles reported are quite close to what I get with the "Trendline by angle" tool in MT4, IF you multiply the values reported by my "indicator" by 10. I don't know why this would need to happen, and I'm qualifying my lack of understanding as an issue with the indicator. Also, I still don't think the sidewinderValue values line up with what it's "supposed" to based on the formulas posted online.

I feel like I'm learning about programming for the first time with all these little issues. Anyway, if you could shed anymore light on this, I'd be very appreciative.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 06-05-2007, 03:12 PM
mrebersv mrebersv is offline
Member
 
Join Date: Dec 2006
Location: Minnesota, USA
Posts: 84
mrebersv is on a distinguished road
Well, I'm using angles because I know what the sum of the two are supposed to come out to for the different colors of the real sidewinder. Since my initial goal is to clone that indicator, I'm using it for comparison.

Well, this code is now based on the minute-by-minute slope. Observation with this on a 1m timeframe does two things. The angle-by-trendline angles do match up. Also, the sidewinderValue numbers do NOT match up with the sidewinder, so maybe I have the wrong values for those colors.

In actuality, I do not want the slope to based on a 1m timeframe unless I'm on a 1m chart. That's why I initially had this:

Quote:
Originally Posted by mrebersv
...and divide by one since it's only one timeframe apart, but that doesn't need to actually be computed since it doesn't affect the number
In an attempt to change, I'm still doing something wrong. To take the slope for whatever the timeframe of the chart is, I thought I'd just change

Code:
double slopeLsma = (lsma25-oldLsma)/(Period()*Point);
to

Code:
double slopeLsma = (lsma25-oldLsma)/Point;
.

After doing this, however, the angle reported is much larger than that observed with the "trendline-by-angle" tool. About 3 times larger in fact. Any ideas?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/non-related-discussions/7921-has-anyone-seen-fx_sniper-lately.html
Posted By For Type Date
Woodiepedia CCI Trading University :: View topic - 2007 WORKING version - Woodies indicator for METATRADER 4!!! This thread Refback 07-04-2008 06:48 AM
Woodiepedia CCI Trading University :: View topic - 2007 WORKING version - Woodies indicator for METATRADER 4!!! This thread Refback 06-20-2008 04:32 AM
Woodiepedia CCI Trading University :: View topic - 2007 WORKING version - Woodies indicator for METATRADER 4!!! This thread Refback 06-03-2008 02:43 PM
Woodiepedia CCI Trading University :: View topic - 2007 WORKING version - Woodies indicator for METATRADER 4!!! This thread Refback 03-28-2008 09:20 PM
Woodiepedia CCI Trading University :: View topic - 2007 WORKING version - Woodies indicator for METATRADER 4!!! This thread Refback 03-14-2008 06:57 PM
Woodiepedia CCI Trading University :: View topic - 2007 WORKING version - Woodies indicator for METATRADER 4!!! This thread Refback 03-13-2008 03:36 PM
Woodiepedia CCI Trading University :: View topic - 2007 WORKING version - Woodies indicator for METATRADER 4!!! This thread Refback 03-12-2008 03:14 AM
Woodiepedia CCI Trading University :: View topic - 2007 WORKING version - Woodies indicator for METATRADER 4!!! This thread Refback 03-05-2008 09:42 PM
Woodiepedia CCI Trading University :: View topic - 2007 WORKING version - Woodies indicator for METATRADER 4!!! This thread Refback 01-29-2008 02:31 PM
Woodiepedia CCI Trading University :: View topic - 2007 WORKING version - Woodies indicator for METATRADER 4!!! This thread Refback 01-01-2008 09:57 AM
Woodiepedia CCI Trading University :: View topic - 2007 WORKING version - Woodies indicator for METATRADER 4!!! This thread Refback 01-01-2008 09:45 AM
Woodiepedia CCI Trading University :: View topic - 2007 WORKING version - Woodies indicator for METATRADER 4!!! This thread Refback 01-01-2008 05:04 AM


All times are GMT. The time now is 01:28 PM.