[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Shooting my own foot?



PureBytes Links

Trading Reference Links

--- In amibroker@xxxx, "Tomasz Janeczko" <amibroker@xxxx> wrote:
> This gives you maximum flexibility but (this is true) enables
> a new ways for shooting yourself in a foot :-)
> 
> Therefore, if you (ab)use sellprice for storing target
> prices you have to add the following at the end of your formula
*****************

Dear Tomasz,

Could you tell me if my planned attempt to use AB to its "maximum 
flexibility" may lead me to "shoot myself in the foot"? My plan has 
three parts.

Part 1: I plan to stack 4 items of fundamental data (PE, PS, etc) 
into the OI field. I assume the OI field is an integer field with 8 
digits of precision. That would allow 2 digits for each of the 4 
items to be stacked. Excel will be used to stack the items by 
rounding the items to 2 digits (and making sure there are no 
negative numbers) and then adding the four items together after 
multiplying each by an increased factor of 100. Eg: Item1 + 
Item2*100 + Item3*100*100 + Item4*100*100*100. That should give a 
stacked figure in which each data item occupies 2 digits: eg 
11223344.
Once imported into AB, the INT() and FRAC() functions will be used 
(along with appropriate division by 100) to separate out the 4 items.
I assume this will work without any unexpected side effects.

Part 2 will take the same basic approach as part 1 but will use 
division by 100 and import through the LOW array: 0.11223344 for 
example. My goal is to keep the Low data below 1 since my tests 
suggest that charting does not work well if the data in the Low 
fields are in the order of 10'000'000 (eg 11223344). My concern is 
this: will having data less than 1 in the low array trigger the stop 
loss feature if it is activated on the settings page? I have buy, 
sell, short, cover set to use "Open" prices? If this will trigger 
the stop loss (which I set to 2% on the settings page), then I plan 
to import the data as 11223344 and ignore what it does to the 
appearance of the charts. But would having a figure of 10 million in 
the Low array set off the stop loss in some unexpected way (say for 
example, if the stock was Short Sold)?

Part 3: Finally I hope to put a price target (again calculated by 
Excel from calculations on fundamental data) into the High array. 
There is no fancy stacking here. It will be just a straight-forward 
price, but I wonder what the stop loss feature will do when the 
target is well above the open and close (my stop loss is usually set 
to 2% on the settings page)? Will the stop loss get triggered when 
the target (ie what is in the High field) is 10%, 20%, 50%, etc. 
above the open or close? 
Also in the case of Short Sell candidates the target stored in the 
High array could be 50% or more BELOW the open and close. Will this 
trigger the stop loss feature and force an exit?

Tomasz. If you think I am pushing AB too far, do let me know. Should 
I be waiting for a future upgrade that will add extra black import 
arrays (hopefully a dozen or more)? Thank you for your consideration 
of these questions. 

b