|
Help Needed - Simulating the indicators Max and Min using Get Historical Candles and Loop Viewer |
julianlam
|
Post subject: Help Needed - Simulating the indicators Max and Min using Get Historical Candles and Loop Viewer |
Post rating: 0
|
Posted: Wed 21 Aug, 2013, 05:45
|
|
User rating: 0
Joined: Sat 29 Jun, 2013, 10:41 Posts: 8
|
Hello Bruno / VJFX Team, I am trying to create a strategy to buy when the price is higher than the last 10 candles and sell when its lower. In the charts I use the indicators Max and Min to determine the target buy and sell price. I've attached my file your your advise.
Based on my structure, it is only successful for all buy orders but it doesn't execute the sell orders. I notices that the problem seems to be that the loop structure fails to assign the min value.
Please tell me how to correct this.
Thank you
Julian
Attachments: |
D2.vfs.vfs [41.87 KiB]
Downloaded 389 times
|
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on
this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control
on their content. Anyone accessing this webpage and downloading or otherwise making use of any document,
data or information found on this webpage shall do it on his/her own risks without any recourse against
Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from
the use and/or reliance on any document, data or information found on this webpage.
|
|
|
|
|
 |
Gonzalez
|
Post subject: Re: Help Needed - Simulating the indicators Max and Min using Get Historical Candles and Loop Viewer |
Post rating: 0
|
Posted: Wed 21 Aug, 2013, 10:54
|
|
User rating: 0
Joined: Mon 15 Jul, 2013, 11:59 Posts: 49 Location: Spain, Madrid
|
Hi Take a look, now you have low and high working out! have fun 
Attachments: |
D2v.vfs [40.62 KiB]
Downloaded 411 times
|
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on
this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control
on their content. Anyone accessing this webpage and downloading or otherwise making use of any document,
data or information found on this webpage shall do it on his/her own risks without any recourse against
Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from
the use and/or reliance on any document, data or information found on this webpage.
|
|
|
|
|
 |
julianlam
|
Post subject: Re: Help Needed - Simulating the indicators Max and Min using Get Historical Candles and Loop Viewer |
Post rating: 0
|
Posted: Wed 21 Aug, 2013, 14:04
|
|
User rating: 0
Joined: Sat 29 Jun, 2013, 10:41 Posts: 8
|
Hi, Thanks for the reply. I am not able to spot the differences between our two files. Can you let me know where you made the changes? I ran the vfs file you provided but it stalled and could not run.
I actually solved my problem by using the donchian channel indicator. It much cleaner and works better.
Thanks alot.
Julian
|
|
|
|
 |
Gonzalez
|
Post subject: Re: Help Needed - Simulating the indicators Max and Min using Get Historical Candles and Loop Viewer |
Post rating: 0
|
Posted: Wed 21 Aug, 2013, 15:05
|
|
User rating: 0
Joined: Mon 15 Jul, 2013, 11:59 Posts: 49 Location: Spain, Madrid
|
Hi I just change the tempVar150 nd asigned number 1000. I run the program and yesterday was probitable. It works ok, atless calculate Max and Min as you can see in picture below. 
Attachments: |
d2v.png [60.59 KiB]
Downloaded 682 times
|
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on
this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control
on their content. Anyone accessing this webpage and downloading or otherwise making use of any document,
data or information found on this webpage shall do it on his/her own risks without any recourse against
Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from
the use and/or reliance on any document, data or information found on this webpage.
|
|
|
|
|
 |
julianlam
|
Post subject: Re: Help Needed - Simulating the indicators Max and Min using Get Historical Candles and Loop Viewer |
Post rating: 0
|
Posted: Wed 21 Aug, 2013, 16:11
|
|
User rating: 0
Joined: Sat 29 Jun, 2013, 10:41 Posts: 8
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|