Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (degenerate_762, AbrahamR, AndrewAMD, ozgur), 667 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 4 of 7 1 2 3 4 5 6 7
Re: Pre-Market Volatility [Re: Sundance] #426935
07/31/13 14:04
07/31/13 14:04
Joined: May 2013
Posts: 627
Bonn
Sundance Offline
User
Sundance  Offline
User

Joined: May 2013
Posts: 627
Bonn
Are you sure about your TakeProfit? I think you wan't the price at 8 o'clock. So it think TakeProfit = priceOpen(); !?

Re: Pre-Market Volatility [Re: Sundance] #426936
07/31/13 14:15
07/31/13 14:15
Joined: Jul 2013
Posts: 75
R
royal Offline OP
Junior Member
royal  Offline OP
Junior Member
R

Joined: Jul 2013
Posts: 75
Quote:
Stop and TakeProfit are relativ to the current price as i know.


With the single Stop function it works.

I don't understand the enterLong function completly also, as it was copied from jcl enterShort function, but it seems to work:

(GER30::S) Short 1@8127 Entry limit
(GER30::S) Short 1@8132 Entry limit
(GER30::S) Short 1@8137 Entry limit
(GER30::L) Long 1@8097 Entry limit
(GER30::L) Long 1@8092 Entry limit
(GER30::L) Long 1@8087 Entry limit

Quote:
Are you sure about your TakeProfit? I think you wan't the price at 8 o'clock. So it think TakeProfit = priceOpen(); !?


This is also from jcl, so I think it should be correct.

Horrible trail and error progamming style from me wink

Last edited by royal; 07/31/13 14:19.
Re: Pre-Market Volatility [Re: royal] #426937
07/31/13 14:19
07/31/13 14:19
Joined: May 2013
Posts: 627
Bonn
Sundance Offline
User
Sundance  Offline
User

Joined: May 2013
Posts: 627
Bonn
Oh. You are right about the enterLong function. Mmmh. When i look at the manual you won't get that information.
There seems to be another function overload that isn't listed in the manual!?

Re: Pre-Market Volatility [Re: Sundance] #426939
07/31/13 14:24
07/31/13 14:24

A
acidburn
Unregistered
acidburn
Unregistered
A



Originally Posted By: Sundance
Are you sure about your TakeProfit? I think you wan't the price at 8 o'clock. So it think TakeProfit = priceOpen(); !?


Same mistake. TakeProfit is profit target distance in price units. The trade is closed when the trade profit has reached this amount. So, you shall not add any price to it.

But things like this should work:

TakeProfit = (priceClose() - priceOpen()) + 50 * PIP;

or maybe some other combination of the signs, types of prices. Obviously I haven't followed (or understood) the strategy description completely, but the above should give some idea.

From what I understand you need to resolve the equation to give you TakeProfit from the current price, and if you need to have it against some other price (possibly from the past bars) then you need to find the difference between those two prices first and then add the wanted profit target. Something like that.

jcl must be laughing often, looking at us amateurs fighting the basics. wink

Re: Pre-Market Volatility [Re: ] #426940
07/31/13 14:26
07/31/13 14:26
Joined: May 2013
Posts: 627
Bonn
Sundance Offline
User
Sundance  Offline
User

Joined: May 2013
Posts: 627
Bonn
Bullshit. What a nonsense from my part. I won't post today anymore. My brain seems to have gone to sleep...
You are totally right about the TakeProfit and with building the price difference.
He want's TP to be 8 o'clock price so

TakeProfit = (priceClose() - priceOpen())

he doesn't need those additionally 50 pips. That 50pips were for the SL only...

Re: Pre-Market Volatility [Re: Sundance] #426944
07/31/13 14:36
07/31/13 14:36
Joined: Jul 2013
Posts: 75
R
royal Offline OP
Junior Member
royal  Offline OP
Junior Member
R

Joined: Jul 2013
Posts: 75
TakeProfit
Profit target value or profit target distance in price units.
So it could also be the value.

Code:
TakeProfit = Price;


and
Code:
Stop = Price + 50*PIP;



were copied from jcl and are working, but I wonder why I can't use the Stop for the Long scenario parallel to the Short one.

Re: Pre-Market Volatility [Re: royal] #426945
07/31/13 14:39
07/31/13 14:39
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
You'll need a different stop for the long and the short trades:

Stop = Price + 50*PIP;
enterShort(1,-15*PIP);
enterShort(1,-20*PIP);
enterShort(1,-25*PIP);

Stop = Price - 50*PIP;
enterLong(1,-15*PIP);
enterLong(1,-20*PIP);
enterLong(1,-25*PIP);

Giving only the 50*PIP distance would not work here because it would then be the distance from the entry price, not from the 8 o'clock price.

Re: Pre-Market Volatility [Re: royal] #426946
07/31/13 14:41
07/31/13 14:41

A
acidburn
Unregistered
acidburn
Unregistered
A



Wow, so it can be either of those variants? Talk about confusing. I didn't even understand the manual completely.

I think I'll join Sundance. Signing off for today... grin

Re: Pre-Market Volatility [Re: jcl] #426947
07/31/13 14:44
07/31/13 14:44
Joined: Jul 2013
Posts: 75
R
royal Offline OP
Junior Member
royal  Offline OP
Junior Member
R

Joined: Jul 2013
Posts: 75
Oh man! The solution is so easy when you read it grin Thanks jcl!

Re: Pre-Market Volatility [Re: royal] #426950
07/31/13 14:47
07/31/13 14:47
Joined: May 2013
Posts: 627
Bonn
Sundance Offline
User
Sundance  Offline
User

Joined: May 2013
Posts: 627
Bonn
Welcome on board acid. Seems i'am not the only one who can't read the manual.
@jcl: So there are more overloaded functions than the manual reveiles!?

Page 4 of 7 1 2 3 4 5 6 7

Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1