|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 3/29/2011 2:26:16 PM
Posts: 8,
Visits: 91
|
|
| hi all i am looking for simple strategy like the one in title ( Orders at Predefined Time Strategy ) link : http://www.actfx.com/Download50073.aspx but i would like it to continue to buy & sell from the same particular time with the same price entry distance in the same day. so if indicator created to place 2 line for entry distance buy & sell will make the strategy easy i used to work with indicator in metatrader name bat fink to adjust entry time as currency volatility here is a picture for the 2 entry buy when price reach the upline & sell when price reach low line 
in above pics gold 15m, i used to place 2 orders with distance 200 it will be fine with stop & limit even if there is ranging in the market the end profit will cover it & more. Breakout Eagle strategy is near to my idea also but i fail in programming to merge between indicator ,variable & procedures. looking for any programmer attention thanks in advance
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 3/29/2011 2:26:16 PM
Posts: 8,
Visits: 91
|
|
| will ............................... programming is fantastic specially when u steal it from ready made strategy & indicator actualy i take the pivot point manual indicator send by anton , i remove pivot point & keep res,+sup with line then i download & search for many strategy , breakout eagle strategy was the nearest idea for mine so i keep copy & past until i reach good resulte exept that i want my strategy to make buy when price reach the green line & sell when it reach red line not to start from the candle . it will be also noise to enter the res,+sup prices manual every day & lunch the strategy at time 3:30:00  i hope if someone will modify it & make it easy please regards here is attachment indicator & strategy & test pics & res,sup pivot point indicator here is test for today on gold 15m & also test for indicator by metatrader in silver for last 2 days & there wonderfull points
|
|
|
|
|
Supreme Being
      
Group: Forum Members
Last Login: 1/27/2012 12:53:25 PM
Posts: 201,
Visits: 295
|
|
Hi, Nabelion.
The problem seems to be in predefining settings: of R1 and S1 prices. They are very high (they should be nearby current currency value). For example: if you put 1.2815 and 1.2811 it will be right for the chart that has current value about 1.28.
Best regards!
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 3/29/2011 2:26:16 PM
Posts: 8,
Visits: 91
|
|
| ^^^^^^^^^^^ hi emoe you r right , of course you must change r & s as curruncy or you will never see any line for usd/cad in price 1215 . the issue is to make full system which can work as metatrader indicator to write two line at target time & lunch r & s automatically so you can make test for 3 month to check the profit or drowdown of the stratery, this is the point . also to add some tools like trailing stop & so on . actually i put gold as greed , it is dangerous for small account .
|
|
|
|
|
Forum Guru
      
Group: Forum Members
Last Login: 8/15/2011 9:38:19 AM
Posts: 63,
Visits: 164
|
|
Hi
I tried to do the same. Look what i've got. I think this should work.
I think the code is self explanatory but if you have questions I can answer
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 3/29/2011 2:26:16 PM
Posts: 8,
Visits: 91
|
|
| ^^^ hi & thanks for the programing i get these error 1- charts doesn't contain start candle 2-EXCEPTION EAccessViolation in TStrategyProcessor CODE MESSAGE Exception at trading strategy "BatFinkStrategy" in routine OnNewCandle at Line:Column 41:6 Reference to undefined object DETAILS
|
|
|
|
|
Forum Guru
      
Group: Forum Members
Last Login: 8/15/2011 9:38:19 AM
Posts: 63,
Visits: 164
|
|
Hi,
It looks like you get 1st error because time you enter is not on the chart, so batfink can't be built, and if you have no indicator the strategy won't work. You can change candles timeframe or you can select more candles to be preloaded before strategy starts, so you'll have candle with needed time on the chart.
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 3/29/2011 2:26:16 PM
Posts: 8,
Visits: 91
|
|
dear rezist
can you add a code so that at the beginning of a new day reset everything
and new bat fink lines will draw for the next days for testing the strategy for previous days
regards
|
|
|
|
|
Forum Guru
      
Group: Forum Members
Last Login: 8/15/2011 9:38:19 AM
Posts: 63,
Visits: 164
|
|
| Hi, I didn't really understand what you want it to do, but it looks like pivot point indicator can work for you. Try it, if it's not what you want describe your idea in more details and I'll try to do it when I have more time.
|
|
|
|