Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by M_D. 04/26/24 20:22
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (PeroPero), 788 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Cannot figure out how enterLong/Short works #448733
02/19/15 07:22
02/19/15 07:22
Joined: Feb 2015
Posts: 11
C
chirpydog Offline OP
Newbie
chirpydog  Offline OP
Newbie
C

Joined: Feb 2015
Posts: 11
Hello, i am immensely interested in this project and developing my own strategies using lite c.

i am testing out my understanding of opening trades using the following codes:

if (priceClosed(0)>buypoint) and (priceLow(0)>buypoint) enterLong(1,buypoint) where buypoint is some 10-20 pips away..

the strategy keeps opening new trades at the next candle...without the tick price at or near buypoint... Can someone enlighten ?

How should i code to know the status of the enterLong ?

Lastly, how and where do i get in touch with service providers who code strategy ?

Many thanks !

Re: Cannot figure out how enterLong/Short works [Re: chirpydog] #448747
02/19/15 18:38
02/19/15 18:38
Joined: May 2013
Posts: 245
S
swingtraderkk Offline
Member
swingtraderkk  Offline
Member
S

Joined: May 2013
Posts: 245
Have you got set(TICKS); enabled so that trades are evaluated by tick as opposed to the close of the next candle?

also for a buy limit the buyprice must be negative, if positive it is a buy stop.

Re: Cannot figure out how enterLong/Short works [Re: swingtraderkk] #448748
02/20/15 00:30
02/20/15 00:30
Joined: Feb 2015
Posts: 11
C
chirpydog Offline OP
Newbie
chirpydog  Offline OP
Newbie
C

Joined: Feb 2015
Posts: 11
Thanks swingtraderkk.

i actually put that code in TRADE mode and i thought in that mode trades are run by tick.. anyway i will include the set(TICKS); and test again..

do u mean it should be -buypoint ?

Re: Cannot figure out how enterLong/Short works [Re: chirpydog] #448754
02/20/15 10:12
02/20/15 10:12
Joined: May 2013
Posts: 245
S
swingtraderkk Offline
Member
swingtraderkk  Offline
Member
S

Joined: May 2013
Posts: 245
Trade mode does run tick by tick.
It is not advisable to run in trade mode before thoroughly testing in test mode.

+ for a stop
- for a limit

Buy Stop = enterLong(0,entry) .... pending buy above price
Buy Limit = enterLong(0,-entry) .... pending buy below price
Sell Stop = enterShort(0,entry) .... pending sell below price
Sell Limit = enterShort(0,-entry) .... pending sell above price

you must use the correct one or risk entering at market


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