| Coding Forum Collaborate, receive help, or discuss coding related issues. |
![]() | | Tweet | |
| | #1 | ||
![]() | EasyLanguage Help Needed ![]() I started studying EasyLanguage not long ago and I'm still a newbie. I need a little help about a part of code of the TS I'm developing. I want the TS to open a position at the "ConditionLong" signal, and, once the first position have been opened, I want it to open other positions of the same size and in the same direction every "X" points. I tried to code it but the TS only opens the first position but not the others... here is the code: Code: If marketposition = 0 and ConditionLong Then Buy next bar At High + 1 point stop; If marketposition > 0 then buy next bar at entryprice + X points stop; | ||
| |
|
| | #2 | ||
![]() | Re: EasyLanguage Help Needed Quote:
Code: If marketposition = 0 and ConditionLong Then Buy next bar At High + 1 point stop; If marketposition > 0 and Close >= entryprice + X then buy next bar at High points stop;
__________________ Precise, "dialed-in", targeted combination setups, like opening a combination lock; is the experience you should be having while trading. Dial left, right, left, . . . click - the lock opens. | ||
| |
|
| | #3 | ||
![]() | Re: EasyLanguage Help Needed Quote:
![]() however unfortunately it doesn't work because it opens just one position... I try to explain pratically what I need: once the first position is entered, say at 100, I want to pyramide it and buy other position every 20 points... so 100, 120, 140, 160...and so on...till the condition to close is met. | ||
| |
|
| | #4 | ||
![]() ![]() | Re: EasyLanguage Help Needed CurrentShares will return how many you are long or short. MarketPosition * CurrentShares will return true position with a + or - sign.
__________________ Information = Equity | ||
| |
|
| | #5 | ||
![]() | Re: EasyLanguage Help Needed Quote:
However even changing the code I posted before this way: Code: If marketposition * CurrentShares = 0 and ConditionLong Then Buy next bar At High + 1 point stop; If marketposition * CurrentShares > 0 and Close >= entryprice + X then buy next bar at High points stop; I think I'd need something like a "lastentryprice" word in order to accomplish the code... something like: Code: If marketposition = 0 and ConditionLong Then Buy next bar At High + 1 point stop; If marketposition > 0 and Close >= lastentryprice + X then buy next bar at High points stop; ![]() Anybody knows how to help me please? | ||
| |
|
| | #6 | ||
![]() | Re: EasyLanguage Help Needed Have you checked the Pyramiding Check Box ? in the Format strategies--> Properties for All--> General--> Allow upto [ ] ??? Good Luck, EasyTrader_I. | ||
| |
|
| The Following User Says Thank You to EasyTrader_I For This Useful Post: | ||
Tradewinds (10-20-2011) | ||
| | #7 | ||
![]() | Re: EasyLanguage Help Needed Quote:
and thank you for the answer.Yes, that box is flagged...and still doesn't work. I really can't understand what is wrong with this code... | ||
| |
|
| | #8 | ||
![]() | Re: EasyLanguage Help Needed Quote:
Quote:
EntryPrice(1)
__________________ Precise, "dialed-in", targeted combination setups, like opening a combination lock; is the experience you should be having while trading. Dial left, right, left, . . . click - the lock opens. | ||
| |
|
![]() |
| Thread Tools | |
| Display Modes | Help Others By Rating This Thread |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What else is Needed to Get It Right? | bharatk8 | Tools of the Trade | 0 | 04-10-2011 06:55 PM |
| EL Help Needed | swakpixel | Coding Forum | 6 | 05-01-2010 06:28 AM |
| Jurik Easylanguage Functions Needed | simterann22 | Coding Forum | 2 | 08-20-2009 12:01 PM |
| just what i needed | xztheericzx | Beginners Forum | 0 | 11-04-2007 05:21 AM |